You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I have the following question:
When I have two intents that are very similar in their syntax in the utterances, where they would differ by the type of intent (date, month, string, etc...).
it is possible to give more weight to an intent taking into account the type of entity?
Or simply that it should not be taken into account if the detected entity was not a date type, for example?
Let me give a practical example:
1º Intent : pedidosCliente
2º Intent : pedidosFechas ( this intent should only take it into account when your entity is of type date (or month for example) )
A corpus:
{
"name": "Hanna Corpus",
"locale": "es-ES",
"entities": {
{
"intent": "pedidosCliente",
"utterances": [
"Quiero ver los pedidos de @entityCliente",
"Quiero ver los pedidos del cliente @entityCliente",
"Muestra los pedidos de @entityCliente",
"Muestrame los pedidos de @entityCliente"
],
"answers": [
"Ok, te muestro los pedidos del cliente {{entityCliente}}"
]
},
{
"intent": "pedidosFechas",
"utterances": [
"Quiero ver los pedidos de @FechaIni",
"Quiero ver los pedidos de @FechaIni a @FechaFin",
"Muestra los pedidos de @FechaIni",
"Muestrame los pedidos de @FechaIni"
],
"answers": [
"Ok, te muestro los pedidos desde {{entityFechaIni}} hasta {{entityFechaFin}}"
]
}
]
}
The result of process "Quiero ver los pedidos de Pepe":
{
"locale": "es",
"utterance": "Quiero ver los pedidos de Pepe",
"languageGuessed": false,
"localeIso2": "es",
"language": "Spanish",
"nluAnswer": {
"classifications": [
{
"intent": "pedidosFechas",
"score": 0.5032182311986605
},
{
"intent": "pedidosCliente",
"score": 0.49678176880133956
}
]
},
"classifications": [
{
"intent": "pedidosFechas",
"score": 0.5032182311986605
},
{
"intent": "pedidosCliente",
"score": 0.49678176880133956
}
],
"intent": "pedidosFechas",
"score": 0.5032182311986605,
"domain": "default",
.....
}
As you can see, it detects the intent "pedidosFechas" when the correct one should be the intent "pedidosCliente".
On the contrary, if the request processed were "Quiero ver los pedidos de Junio", if it should detect as main intent "pedidosFechas"
Any idea how to get it?
The way could be by "slot filing"?
Intent : pedidosFechas
"slotFilling": {
"FechaIni": {
"mandatory": true,
----> "type": "date" ----> Something similar
},
Thank you so much.
The text was updated successfully, but these errors were encountered:
sorry I'm an ignorant newbie xD, the corpus was wrong, by default it already does it correctly
Corrects utterances:
"data": [
{
"intent": "pedidosCliente",
"utterances": [
"Quiero ver los pedidos de Paco",
"Quiero ver los pedidos del cliente Alberto",
"Muestra los pedidos de Carlos",
"Muestrame los pedidos de Mario"
],
"answers": [
"Ok, te muestro los pedidos del cliente {{entityCliente}}"
]
},
{
"intent": "pedidosFechas",
"utterances": [
"Quiero ver los pedidos de Enero",
"Quiero ver los pedidos de febrero",
"Quiero ver los pedidos de marzo",
"Quiero ver los pedidos de abril",
"Quiero ver los pedidos de mayo",
"Quiero ver los pedidos de junio",
"Quiero ver los pedidos de Enero a febrero",
"Muestra los pedidos de enero",
"Muestrame los pedidos de enero"
],
"answers": [
"Ok, te muestro los pedidos desde {{entityFechaIni}} hasta {{entityFechaFin}}",
"Ok, te muestro los pedidos de {{entityFechaIni}}"
]
}
I'm experimenting with this great library.
And I have the following question:
When I have two intents that are very similar in their syntax in the utterances, where they would differ by the type of intent (date, month, string, etc...).
it is possible to give more weight to an intent taking into account the type of entity?
Or simply that it should not be taken into account if the detected entity was not a date type, for example?
Let me give a practical example:
1º Intent : pedidosCliente
2º Intent : pedidosFechas ( this intent should only take it into account when your entity is of type date (or month for example) )
A corpus:
{
"name": "Hanna Corpus",
"locale": "es-ES",
"entities": {
},
"data": [
]
}
The result of process "Quiero ver los pedidos de Pepe":
{
"locale": "es",
"utterance": "Quiero ver los pedidos de Pepe",
"languageGuessed": false,
"localeIso2": "es",
"language": "Spanish",
"nluAnswer": {
"classifications": [
{
"intent": "pedidosFechas",
"score": 0.5032182311986605
},
{
"intent": "pedidosCliente",
"score": 0.49678176880133956
}
]
},
"classifications": [
{
"intent": "pedidosFechas",
"score": 0.5032182311986605
},
{
"intent": "pedidosCliente",
"score": 0.49678176880133956
}
],
"intent": "pedidosFechas",
"score": 0.5032182311986605,
"domain": "default",
.....
}
As you can see, it detects the intent "pedidosFechas" when the correct one should be the intent "pedidosCliente".
On the contrary, if the request processed were "Quiero ver los pedidos de Junio", if it should detect as main intent "pedidosFechas"
Any idea how to get it?
The way could be by "slot filing"?
Intent : pedidosFechas
"slotFilling": {
"FechaIni": {
"mandatory": true,
----> "type": "date" ----> Something similar
},
Thank you so much.
The text was updated successfully, but these errors were encountered: