I am trying to get names and company name from user. but if I message any name which is not inside my nlu.yml file it says anything from responses and deactivates form. So, anyone know how to achieve this?
I have shared content of nlu.yml, domain.yml(for form) and config.yml
Sorry I’m not understanding. Are you saying that you’ve tried adding more training data, but the NLU still predicts only examples in the training data and fails to generalize to other inputs?
I’m curious to know what the prediction confidence is. I suspect that it’s low since your two intents are quite similar. Perhaps you could try to use a single intent such as inform, and use two entities person_name and company_name. Especially since you are handling this part with a form, I don’t see the purpose of using two separate intents.
What I can try is use inform intent and get from_text so whatever user provide I will accept it as an answer because name can’t be properly identify. E.g. Former name of Elon Musk son it was alphanumeric and some companies too have names like that so can’t identify
Above I used from_text and no intent or entity needs to be added. This way we will get a proper text out of that particular slot.
Thanks for the help @alexyuwen but training data won’t help here.
Here is output on rasa shell:
In the form handling part of your domain.yml, you should remove the not_intent condition after sales data enrichment. This condition is what causes the form to deactivate when the user’s input doesn’t match any of the specified intents.
Here’s how you can modify your files:
nlu.yml:
version: “2.0”