I'm trying to train my Wit.ai bot in order to recognize the first name of someone. I'm not very sure if I well understand how the NLP works so I'll give you an example.
I'm not sure if this process is correctly. So, I ask you:
Wit.ai is a natural language processing (NLP) tool that helps developers get structured data from chat or voice. Wit.ai makes it easy to build NLP into your chat bot, that learns from every interaction.
Where is my Access Token? After creating your app, you can find your access token in the app's Settings tab.
You have done it right by keeping the entity's search strategy as "free-text" and "Keywords". But Adding keywords examples to the entity doesn't make any sense because a person's name is not a keyword.
So, I would recommend a training strategy which is as follows:
The logic behind this is your entity is a free-text and keyword which means it first tries to match the keyword if not matched it tries to find the word in the same position of the templates. Keeping the name same for validations helps to train the bot with the templates and learn the position where the name will be usually found.
Hope this works. I have tried this and worked for me. I am not sure how bot trains in background. I recommend you to start a new app and do this exercise. Comment if there is any problem.
wit.ai has a pre-trained entity extraction method called wit/contact
, which
Captures free text that's either the name or a clear reference to a person, like "Paul", "Paul Smith", "my husband", "the dentist".
It works good even without any training data. To read about the method refer to duckling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With