Training Error Feature not found - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

Training Error Feature not found

post by Rahuja23 on Jun 26, 2020

Hello!! I am trying to train my bot and the training is happening but I am getting errors like " - Feature ‘intent_location’ could not be found in feature map." Can some one please explain the error?

post by MuraliChandran14 on Jun 27, 2020

Hi @Rahuja23,

Welcome to Rasa Community!.

Have you declared location in domain.yml under intents:?

post by Rahuja23 on Jun 27, 2020

Hi Murali
No I have declared location as a slot of type text. Do I have to mention it under intents as well?

post by MuraliChandran14 on Jun 27, 2020

If you have created a ##intent:location in your nlu.md and called in stories.md, then you have to declare it in the domain.yml under intents:.

post by Rahuja23 on Jun 28, 2020

Hey my headings under intent in domain.yml is the same as the intents defined in nlu.md !! Is there any place less public where I can share my code with you?

post by MuraliChandran14 on Jun 28, 2020

You can share it here, upload your domain.yml, stories.md, nlu.md, I will take a look at it.

post by Rahuja23 on Jun 29, 2020

Hey Murali
I was able to solve the issue but now I am facing a new problem. I am posting my code here, kindly take a look at it.

actions.py (3.0 KB)
domain.yml (1.4 KB)

[quote="Rahuja23, post:1, topic:30715, full:true"]
Hello!! I am trying to train my bot and the training is happening but I am getting errors like " - Feature ‘intent_location’ could not be found in feature map."
Can some one please explain the error?
[/quote]

Problem: - every time I am running my bot and asking for open job positions it says none positions are available. I think there is some issue in actions.py but I am not able to resolve it.

I would really appreciate your help.

post by MuraliChandran14 on Jun 30, 2020

Are you getting None printed on the dispatcher or did you get the message on the dispatcher There are no open positions?

post by Rahuja23 on Jun 30, 2020

There are no open positions, but I am getting this every time!

post by MuraliChandran14 on Jun 30, 2020

Is any an entity, what input are you feeding to your bot?

post by Rahuja23 on Jun 30, 2020

I have chosen role_type to be a categorical slot and any is one of the categories. What do you mean by what are you feeding your bot?

post by MuraliChandran14 on Jun 30, 2020

How do you start answering your bot, can you share an example?

post by Rahuja23 on Jun 30, 2020

post by Rahuja23 on Jun 30, 2020

Run your actions server along with your shell in separate command line

rasa run actions --debug

Your custom action will be called and start to work.

post by MuraliChandran14 on Jun 30, 2020

I saw your actions.py header file, may I know what rasa version are you using?
Did you do rasa Init when you created the project?

post by Rahuja23 on Jun 30, 2020

Rasa 1.10.3 and yes I did rasa Init.

post by MuraliChandran14 on Jun 30, 2020

Your action server is not communicating with the registered actions in your domain.yml

Do you have rasa_sdk? If not, please install rasa_sdk and change your import statements in your actions.py to

post by Rahuja23 on Jun 30, 2020

Murali I was able to resolve that issue but now my check_status action is not working. I am attaching my stories.py file, actions.py file, and a screenshot of what is happening. Kindly take a look and guide me.

actions.py (3.3 KB)
stories.md (1.8 KB)

post by MuraliChandran14 on Jul 1, 2020

@Rahuja23, it looks like the name is not in nlu.md, so its going out of context triggering fallback or continuing different story path apart from the one original story.

Have you used rasa interactive? which is really a great feature to generate stories, you can actually visualize and follow what bot actually deciding next and you can write actions along the way and export it at the end. Please use it, it will be really helpful. Simultaneously run an actions server along with it.