# Name entity is not extracting

**URL:** <https://forum.rasa.com/t/name-entity-is-not-extracting/44959>\
**Category:** Rasa Open Source\
**Created:** [June 23, 2021, 10:29am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959 "2021-06-23T10:29:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sakshi14](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sakshi14](https://forum.rasa.com/u/sakshi14)\
**Post date:** [June 23, 2021, 10:29am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/1 "2021-06-23T10:29:31Z")

</div>

I am trying to extract name other than one defined in training dataset . When I say my bot my name is john with user\_name as a slot .It should answer hello john , whatever name I put in the bracket .

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [June 23, 2021, 11:19am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/2 "2021-06-23T11:19:33Z")

</div>

@sakshi14 you want that when user input his/her name the bot fetch the name entity and display with the message Hello John, How can I help you today? Right!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [June 23, 2021, 11:50am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/3 "2021-06-23T11:50:17Z")

</div>

@sakshi14

**domain.yml**

responses: utter\_show\_detail:

- text: Thanks **{name}!** for the Email id **{email}**. How can I help you!

actions: action\_show\_detail

**action.py**

class ActionDetailt(Action):

```
 def name(self) -> Text:
     return "action_show_detail"

 def run(self, dispatcher: CollectingDispatcher,
         tracker: Tracker,
         domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
        
     name=tracker.get_slot("name")
     email=tracker.get_slot("email")

     dispatcher.utter_message(template="utter_show_detail")
     
     return []

```

You need to create the intent in nlu.yml, mention the Intent, Entities, Slots in domain.yml and create the story for the bot/user conversation.

I guess you want this only?

---

<div class="post-metadata">

**Author:** ![sakshi14](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sakshi14](https://forum.rasa.com/u/sakshi14)\
**Post date:** [June 24, 2021, 6:59am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/4 "2021-06-24T06:59:53Z")

</div>

forms: user\_info\_form: ignored\_intents: - greet - goodbye required\_slots: user\_type: - type: from\_entity entity: user\_type intent: - user\_type user\_name: - type: from\_text entity: user\_name intent: - user\_name I am using form and trying to extract the name from\_text . I am not extracting entity actually. i am just trying to extract text here

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 10, 2021, 2:09pm UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/5 "2021-07-10T14:09:40Z")

</div>

@sakshi14 Hi! Your query is solved?

---

<div class="post-metadata">

**Author:** ![sakshi14](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sakshi14](https://forum.rasa.com/u/sakshi14)\
**Post date:** [July 13, 2021, 6:07am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/6 "2021-07-13T06:07:12Z")

</div>

No …My query still not solved

---

<div class="post-metadata">

**Author:** ![souvikg10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/souvikg10/32/93_2.png) [@souvikg10](https://forum.rasa.com/u/souvikg10)\
**Post date:** [July 13, 2021, 7:49am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/7 "2021-07-13T07:49:36Z")

</div>

sounds more like an entity extraction problem over a slot set problem. Do you mean that the NLU model isn’t able to extract names based on the training you have done. Did you use DIET?

Names are incredibly hard and i wouldn’t rely on an extractor for names to work perfectly because they don’t have any definite pattern. Probably best if you can use lookup tables… if your namelist is finite in nature.

---

<div class="post-metadata">

**Author:** ![ramakrishna](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@ramakrishna](https://forum.rasa.com/u/ramakrishna)\
**Post date:** [November 21, 2023, 7:26am UTC](https://forum.rasa.com/t/name-entity-is-not-extracting/44959/8 "2023-11-21T07:26:58Z")

</div>

I am also facing the name extraction issues

nlu recipe: default.v1 assistant\_id: 20231017-115141-knurled-estimator language: en pipeline:

- name: “WhitespaceTokenizer”
- name: “CRFEntityExtractor”
- name: “CountVectorsFeaturizer”
- name: “CountVectorsFeaturizer”
- name: “DIETClassifier”
- name: “SpacyNLP” model: “en\_core\_web\_md”
- name: “RegexFeaturizer”
- name: SpacyEntityExtractor dimensions: [“name”,“PERSON”,“ORG”]
- name: “SpacyEntityExtractor”
- name: “EntitySynonymMapper”
- name: RegexEntityExtractor case\_sensitive: False use\_lookup\_tables: True use\_regexes: True

policies:

- name: MemoizationPolicy
- name: TEDPolicy
- name: RulePolicy

entities:

- name

- intent: contact\_us examples: |

and if i

- intent: contact\_us examples: |
  - ramakrishna

the name ramakrishna only extracting
