-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with 4.x #430
Comments
@jesus-seijas-sp any idea what could be going on here? Any help would be appreciated. :) |
Hello, the problem cames because the reduceEdges is currently less aggressive. You're replicating the same text for the entity: ['John', 'john']. It produces that the entity is identified twice, so it generates the utterance with the entity name twice replicated, that does not match. It will work correctly if you replace ['John', 'john'] with ['John'] or ['john']. As the text is normalized before entity match, it will work. Even with that, I fixed the reduce Edges in this PR: #436 |
Thanks @jesus-seijas-sp it worked when I removed "John" from the array. But then I added another possible value for that entity and it is returning the correct intent:
This should return |
Hello, |
Maybe I am missing something but don't these two lines add John and Mary to it:
FirstName variable can have any value between "John" and "Mary".. |
Hello, Nope... Imagine that you have an online restaurant. You have food and beverages, and you name all your products with a code, unknown by the user. And also the names you have for the user can have sinonyms, like this:
So I have two entities, food and beverage. Food has 3 options by code, but the code is not something added into synonyms, because can be internal. Another way to understand it, if you have entities for airports, you'll want your users to tell you the name of the airport or the city, but internally you want the airport code. |
Thanks for the clarification, appreciate the example since that helps build a better mental model. :) |
@jesus-seijas-sp One last question, is i.e.
would |
Hello, as there is a normalization before all, the normalization does convert to lower case... so is case unsensitive. |
👍 Thanks |
Describe the bug
When providing a training phrase with just an "entity" the intent is not detected properly. This is working in 3.10.2 but not in 4.x.
To Reproduce
Run the code above and it should print:
GetFirstNameIntent
Expected behavior
We expect it to determine
GetFirstNameIntent
as the intentScreenshots
N/A
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: