Closed obaid closed 1 year ago
any ideas on this?
Try with v4 ... at least with my latest PRs (still unmerged) it should work. I just tried it:
{
"locale": "en",
"utterance": "8929992222 here",
"languageGuessed": false,
"localeIso2": "en",
"language": "English",
"nluAnswer": {
"classifications": [
{
"intent": "phone.intent",
"score": 1
}
]
},
"classifications": [
{
"intent": "phone.intent",
"score": 1
}
],
"intent": "phone.intent",
"score": 1,
"domain": "default",
"sourceEntities": [
{
"start": 0,
"end": 9,
"resolution": {
"value": "8929992222"
},
"text": "8929992222",
"typeName": "number"
},
{
"start": 0,
"end": 9,
"resolution": {
"value": "8929992222",
"score": "0.3"
},
"text": "8929992222",
"typeName": "phonenumber"
}
],
"entities": [
{
"start": 0,
"end": 9,
"len": 10,
"accuracy": 0.95,
"sourceText": "8929992222",
"utteranceText": "8929992222",
"entity": "number",
"resolution": {
"strValue": "8929992222",
"value": 8929992222,
"subtype": "integer"
}
},
{
"start": 0,
"end": 9,
"len": 10,
"accuracy": 0.95,
"sourceText": "8929992222",
"utteranceText": "8929992222",
"entity": "phonenumber",
"resolution": {
"value": "8929992222",
"score": "0.3"
}
}
],
"actions": [],
"answers": [],
"sentiment": {
"score": 0.25,
"numWords": 2,
"numHits": 1,
"average": 0.125,
"type": "senticon",
"locale": "en",
"vote": "positive"
}
}
Describe the bug When having a built-in entity as the only input for an intent, the result comes back as 'None'
To Reproduce
Run this example: