Skip to content
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

Closed
Seraf opened this issue Aug 8, 2013 · 5 comments
Closed

Entity change not returned correctly #4

Seraf opened this issue Aug 8, 2013 · 5 comments

Comments

@Seraf
Copy link

Seraf commented Aug 8, 2013

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".

@ar7hur
Copy link
Contributor

ar7hur commented Aug 9, 2013

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.

@ar7hur
Copy link
Contributor

ar7hur commented Aug 9, 2013

We just the released the "edit custom entities" feature that will solve your problem.

Go to Entities in the console:
image

Click on your entity (action_volume), you can then see and modify the values and expressions:
image

Please let me know if it solves your issue.

@Seraf
Copy link
Author

Seraf commented Aug 9, 2013

Ok thanks, I removed the bad entries in the entity and it works now.
I think there's an illogic behavior about the change of the entity in the intent.

I go in my intent named volume.
I click on my sentence: "le son est pas assez fort"
Then I change the entity from "baisse" to "augmente".
It add the expression to the good word list of the entity but not delete the old word list.

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 ?

@ar7hur
Copy link
Contributor

ar7hur commented Aug 9, 2013

You're right -- will fix!

@blandinw
Copy link
Contributor

blandinw commented Aug 9, 2013

Fixed! Expressions are now unique across an entity.

@blandinw blandinw closed this as completed Aug 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants