microsoft / Cognitive-LUIS-Windows

Windows (.Net) SDK for the Microsoft Language Understanding Intelligent Service API, part of Congitive Services
www.microsoft.com/cognitive-services/en-us/language-understanding-intelligent-service-luis
Other
134 stars 78 forks source link

Issue with builtin.personName entity #87

Closed kisnam closed 5 years ago

kisnam commented 5 years ago

Hi,

I am having an issue where in LUIS is unable to identify multiple person names in an utterance. More relevantly when the name is mentioned after "and or ," in a phrase.

For Eg: When user types, "Schedule a meeting with Bob and Lisa", LUIS recognizes only Bob a builtin.personName where in Lisa is not recognized at all. Also separating names with comma didn't work either. If I change the order of names to Lisa and Bob, only Lisa gets listed and poor Bob gets ignored this time.

Also it failed to identify the name when typing, "Book meeting and Bob".

My another attempt was successful after changing the utterance to "Book meeting with Bob as well as Lisa". But that would not be general way of posting a query.

And no luck with patterns either, "can i have {personName} and {personName} for quick meeting".

I don't see similar issue with emails separated by "and or comma".

Note:I also tried built in domain entity Entertainment.Person with same results.

Appreciate your help.

stevkan commented 5 years ago

@kisnam,

The likely culprit is a lack of utterances (variations) for the personName entity. Docs suggest no less than 5, though more will always produce better overall results. This answer on Stack Overflow provides more information that should help you.

As for the pattern, add the following as-is. Be sure to assign to the correct intent and train your model. When I tested with this setup it worked perfectly.


image

I'm going to close this issue as answered. If you need further help, please feel free to re-open. Hope of help!