NER it not recognizing

rasa-core
rasa-nlu

(Muhammad Irfan) #1

I’m trying to train a simple chatbot.

entities:
  - command
  - patient-name
  - navModule
slots:
  patient-name:
    type: text
  navModule:
    type: text
  command:
    type: text

intents:
 - navigate.Medication
 - open.settings

templates:
 utter_navigate_Medication:
  - "Opening {patient-name}'s {navModule}"

 utter_navigate_Medication_follow_up_patient_name:
  - "Medication For which patient?"

 utter_open_settings:
  - "opening {navModule}"

and training data

## intent:navigate.Medication
- can you [take me to](command) [medication](navModule)
- please [show](command) [medication](navModule)
- [take me to](command) [medication](navModule)
- please [open](command) [medication](navModule)
- [show](command) [medicines](navModule)
- [Show](command) [medication](navModule)
- [Open](command) [medication](navModule)
- [Open](command) [Medication](navModule) for [Katharine](patient-name)
- [I would like to see](command) [Katharine](patient-name) [Medicine](navModule)
- Please [take me to](command) [Katherine](patient-name) [medication](navModule)
- [take me to](command) [Eduardo](patient-name) [medication](navModule)
- Can you [open](command) [Eduardo](patient-name) current [Medication](navModule)
- [Open](command) [Eduardo](patient-name) latest [medicines](navModule)
- [take me to](command) [John](patient-name) current [Medication](navModule)
- Can you please [open](command) [John](patient-name) [meds](navModule)
- [take me](command) into [Medication](navModule) of current patient
- [take me](command) into [Medication](navModule) of [John](patient-name)
- [open](command) [Ravi](patient-name) [medication](navModule)

## intent:open.settings
- [go to](command) [settings](navModule)
- [show](command) [settings](navModule)
- [open](command) [settings](navModule)

but patient-name entity is not being recognized and slot is not being set.


(Akela Drissner) #2

You need to provide a lot more training data than that. Also I would suggest trying out ner_spacy for person names