snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.9k stars 512 forks source link

Wildcard entity #885

Open calypset opened 4 years ago

calypset commented 4 years ago

Question I am looking to have an intent that is followed by any entity such as "search Keyword" or "seach for keyword" or "search with keyword", for a keyword that can be any word. I understand we can set 'automatically_extensible' to yes, but nevertheless the probability is lower when adding any keyword. So first how can I return the keyword after the utterances? Is there a way I can return the intent utterance that was identified with the highest probability so that I can find the keyword after that intent utterance? Or more generally how to set a 'unversal', wildcard anything entity like '*'? Thank you kindly.

calypset commented 4 years ago

I believe this item already has been discussed in https://github.com/snipsco/snips-nlu/issues/845

Decad commented 4 years ago

It would be nice to have explicit match or a way to bias intents, I have the following example.

https://gist.github.com/Decad/e7de645e89e2a66395d7ca560d6be0e0

It would be nice to have a way to force the reminder intents to match with a higher priority than the searchFlights one.