Using Jovo v4.0.0.
Entities are resolving incorrectly, or am I missing something?
model json:
{
"invocation": "my app",
"version": "4.0",
"intents": {
"GetForexRate": {
"phrases": [
"exchange rates",
"conversion rates",
"forex",
"convert from {ccyFrom} to {ccyTo}",
"what is the exchange rate from {ccyFrom} to {ccyTo}",
"exchange rate for {ccyFrom} to {ccyTo}",
"what is the rate from {ccyFrom} to {ccyTo}",
"convert {ccyFrom} to {ccyTo}",
"how many {ccyFrom} does one {ccyTo} cost",
"how many {ccyTo} is one {ccyFrom}",
"how many {ccyTo} are one {ccyFrom}"
],
"entities": {
"ccyFrom": {
"type": "currency"
},
"ccyTo": {
"type": "currency"
}
}
}
},
"entityTypes": {
"currency": {
"values": [
"USD",
"INR",
"GBP",
"AUD"
]
}
}
}
When I type ‘USD to INR’, I expect to receive ccyFrom = USD
and ccyTo = INR
. But I’m getting different values, like below:
this.$input.nlu.entities = {ccyTo: {id: 'INR', ....}} // only one entry
and
this.$input.nlu.raw.entities = [ // 2 entries, but alias is incorrect
{alias: 'ccyTo_0', entity: 'ccyTo', option: 'USD', ...},
{alias: 'ccyTo_1', entity: 'ccyTo', option: 'INR', ...}
]
Debug view: