nlp.js
nlp.js copied to clipboard
Handling list entities..
Is your feature request related to a problem? Please describe. I am looking for ways to handle a list like input from the user. For example, if we are looking to get pizza toppings from the user we may want to detect multiple "entities" within a single utterance.
e.g. I would like olives, mushrooms and chicken how about olives and chicken just olives please
Describe the solution you'd like I am not sure how we can add training phrases that can handle a situation like this.
manager.addDocument("en", "i would like %topping%, %topping% and %topping%", "getToppingIntent");
Describe alternatives you've considered N/A
Additional context N/A
See: https://github.com/axa-group/nlp.js/blob/master/docs/v3/ner-manager.md#utterances-with-duplicated-entities
I think that is what you are looking for?
Also exists in v4
Closing due to inactivity. Please, re-open if you think the topic is still alive.