-
Notifications
You must be signed in to change notification settings - Fork 511
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
language-independent slot values #716
Comments
Hi @syl22-00 ,
And in french:
Would that be a suitable solution ? |
My understanding with that solution is that the reference value is part of the list of accepted words, so it could create confusions if it is also a valid word in a non-English language, possibly with a very different meaning (such as The right way could be to use some kind of namespace in those reference values to make sure they are used as reference value only, and never found as is in the input: Does that sound correct? Many thanks for helping |
Indeed, the reference value will be considered as a valid entity value. The namespacing solution that you mentioned is a valid workaround. There is a feature that we discussed recently which would address properly this use case. It would be to have an optional {
"phoneType": {
"data": [
{
"value": "landline",
"value_id": "LANDLINE",
"synonyms": [
"home"
]
},
{
"value": "mobile",
"value_id": "MOBILE",
"synonyms": [
"cellphone"
]
}
],
"use_synonyms": true,
"automatically_extensible": false,
"matching_strictness": 1.0
}
} And in the parsing result:
This is still at the discussion and specification stage though. |
That would be great. Thanks a lot for the support. |
does value_id is implemented yet ? |
It would be great to be able to define slots with a language-independent value. For instance, we could have an intent callContact, to make a phone call, with a contactName slot and a phoneType slot which would specify on which of possibly several phones the contact should be called. Slot value LANDLINE would map to the different ways to name a landline for different supported languages.
The text was updated successfully, but these errors were encountered: