Hi. I can’t seem to get my bot to progress to the next part of the story. Static stories with actions that do not require entities work fine (I am able to run the server). I cannot seem to extract the ner spacy entity and actually use it in my chatbot. Here’s what my intent classifier returns:
{'intent': {'name': 'enter_data', 'confidence': 0.8633794133270616}, 'entities': [{'start': 26, 'end': 31, 'value': '98108', 'entity': 'zipcode', 'confidence': 0.868676684725713, 'extractor': 'ner_crf'}, {'entity': 'zipcode', 'value': '98108', 'start': 26, 'end': 31, 'confidence': None, 'extractor': 'ner_mitie'}, {'entity': 'PERSON', 'value': 'Sally Jones', 'start': 0, 'confidence': None, 'end': 11, 'extractor': 'ner_spacy'}, {'entity': 'CARDINAL', 'value': '98108', 'start': 26, 'confidence': None, 'end': 31, 'extractor': 'ner_spacy'}, {'start': 26, 'end': 31, 'text': '98108', 'value': 98108.0, 'confidence': 1.0, 'additional_info': {'value': 98108.0}, 'entity': 'number', 'extractor': 'ner_duckling'}, {'start': 26, 'end': 31, 'text': '98108', 'value': 98108.0, 'confidence': 1.0, 'additional_info': {'value': 98108.0, 'unit': None}, 'entity': 'distance', 'extractor': 'ner_duckling'}, {'start': 26, 'end': 31, 'text': '98108', 'value': 98108.0, 'confidence': 1.0, 'additional_info': {'value': 98108.0, 'unit': None, 'latent': True}, 'entity': 'volume', 'extractor': 'ner_duckling'}, {'start': 26, 'end': 31, 'text': '98108', 'value': 98108.0, 'confidence': 1.0, 'additional_info': {'value': 98108.0, 'unit': None}, 'entity': 'temperature', 'extractor': 'ner_duckling'}], 'intent_ranking': [{'name': 'enter_data', 'confidence': 0.8633794133270616}, {'name': 'schedule_appointment', 'confidence': 0.04580777641540404}, {'name': 'reschedule_appointment', 'confidence': 0.02932276578028056}, {'name': 'get_available_times', 'confidence': 0.011939766271568654}, {'name': 'cancel_appointment', 'confidence': 0.01124583610896789}, {'name': 'play_basketball', 'confidence': 0.009002974171027309}, {'name': 'farewell', 'confidence': 0.00650887472054812}, {'name': 'greeting', 'confidence': 0.0050860155019964845}, {'name': 'help_options', 'confidence': 0.0033674698233517836}, {'name': 'check_appointments', 'confidence': 0.002930205274110546}], 'text': 'Sally Jones with zip code 98108'}
Here’s an example of one of my stories in which I try to extract PERSON using ner_spacy. The story won’t progress after utter_prompt_fullname.
story_schedule_appointment_negate_farewell
- greeting
- utter_greeting
- utter_self_introduction
- utter_need_assistance
- schedule_appointment
- utter_love_to_help
- utter_prompt_fullname
- enter_data{“PERSON”, “Jean Lee”}
- action_verify_caller_fullname
- utter_prompt_birthdate
- enter_data{“time”, “1946-12-16T00:00:00.000Z”}
- action_verify_dob
- utter_prompt_zip
- enter_data{“zipcode”, “48758”}
- action_verify_caller_zipcode
- utter_prompt_specialist
- enter_data{“PERSON”, “Esther Liu”}
- action_prompt_specialist
- utter_prompt_purpose
- enter_data{“purpose”, “stomach pain”}
- action_prompt_purpose
- utter_prompt_when_appointment
- enter_data{“time”, “2019-04-16T13:00:00.000Z”}
- action_prompt_appointment_time
- utter_prompt_confirm
- affirm
- action_schedule_appointment
- utter_prompt_anything_else
- thank
- negate
- farewell
- utter_farewell
I do have the PERSON entity and slot defined in my domain.yml file.
There are no errors when running the bot. Thanks.