File “c:\users\selvakumar raj\anaconda3\envs\cap2\lib\site-packages\rasa\shared\core\training_data\story_writer\yaml_story_writer.py”, line 256, in process_user_utterance
entities.append(entity[“entity”])
KeyError: ‘entity’
But I couldn’t find where yaml_story_writer.py component is and what is wrong with my data.
Additional Info…I commented each and every nlu and story line that I added and I noticed that I’m not getting error when I comment the highlighted part…
But still I commented out that part and trained by model and executed it using rasa interactive method. I see that rasa identifies the intent and entity correctly for newly added conversation. But as per my story, I have given the action as “action_get_contact” for that intent. But it tries to execute a different action “action_pp_remedy” which I’ve given in different stories.
This issue is now solved. After hours of debugging and searching thru Rasa docs, I was able to locate my mistake. I’ve used an entity called “role”. But role is also a reserved keyword in Rasa. I changed this entity name and now “rasa train” completed without any issues.