-
Notifications
You must be signed in to change notification settings - Fork 91
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
Entity change not returned correctly #4
Comments
I think you made one mistake while validating some expressions, as a result "pas assez fort" is mapped to both "baisse" and "augmente" values of your action_volume entity (which should be prevented by Wit, I admit). We'll release a feature enabling you to edit the values and expressions of custom entities tomorrow -- it should solve your problem. |
Ok thanks, I removed the bad entries in the entity and it works now. I go in my intent named volume. So by changing the entity, it result to have the term copied in the two list that's why it returned me the same result each time. Now I can delete it with your new update, but it's a manual change, I think the behavior of the Intents part should be changed. What do you think about it ? |
You're right -- will fix! |
Fixed! Expressions are now unique across an entity. |
I made an intent with an entity.
I do a curl request on it and it returns me the correct json :
julien@tagada-work:~$ curl -H 'Authorization: XXXXXXXXXXX' 'https://api.wit.ai/message?q=le%20son%20est%20pas%20assez%20fort'
{
"msg_id" : "2c7c37a5-68d1-4f12-9cd4-3509b4858ca1",
"msg_body" : "le son est pas assez fort",
"outcome" : {
"intent" : "volume",
"entities" : {
"action_volume" : {
"end" : 25,
"start" : 11,
"wisp" : "07e67b00-2386-4ec2-ae3b-56ee6d411d86$action_volume",
"value" : "baisse",
"body" : "pas assez fort"
}
},
"confidence" : 0.9945912894138687
}
}
When I do a modification of the entity to match the value "augmente", it returns me the same json result.
The msg_id is different, but all the other fields are the same.
The result expected is a change in the field value to "augmente".
The text was updated successfully, but these errors were encountered: