nlp.js icon indicating copy to clipboard operation
nlp.js copied to clipboard

Handling list entities..

Open obaid opened this issue 4 years ago • 2 comments

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

obaid avatar May 12 '20 11:05 obaid

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?

soltrinox avatar Jun 27 '20 08:06 soltrinox

Also exists in v4

Apollon77 avatar Aug 08 '22 19:08 Apollon77

Closing due to inactivity. Please, re-open if you think the topic is still alive.

aigloss avatar Nov 25 '22 09:11 aigloss