LUIS将TIME和DURATION视为数字ENTITY [英] LUIS consider TIME and DURATION as number ENTITY
问题描述
我期待的是DATE,TIME,DURATION& JSON下没有加入呼叫的人.
I was expecting entities such DATE, TIME, DURATION & No Of People Joining the Call in below JSON.
现在,我正确地获得了诸如DATE,TIME和DURATION之类的实体,但是对于 No People 来说,这对我来说是个问题. 我得到了四个实体,分别是NUMBER,所以现在我很困惑如何选择代表 No Of People 的确切实体.理想情况下,它是 6 ,但我不知道应该基于哪个来确定6是 No People
Now i got entities back such as DATE,TIME and DURATION correctly but for No Of People there is problem for me. I am getting four entities as NUMBER so now i am confused as how to pick exact entity that represent No Of People. Ideally it is No. 6, but i am not getting on which basis i should decide that 6 is the No Of People
{
"query": "book audio bridge tomorrow for 6 people for 30 mins starts at 5:30 PM",
"topScoringIntent": {
"intent": "BookAudioBridge",
"score": 0.9895838
},
"intents": [
{
"intent": "BookAudioBridge",
"score": 0.9895838
},
{
"intent": "ListBooking",
"score": 0.00677821552
}
],
"entities": [
{
"entity": "tomorrow",
"type": "builtin.datetimeV2.date",
"startIndex": 18,
"endIndex": 25,
"resolution": {
"values": [
{
"timex": "2018-06-21",
"type": "date",
"value": "2018-06-21"
}
]
}
},
{
"entity": "30 mins",
"type": "builtin.datetimeV2.duration",
"startIndex": 44,
"endIndex": 50,
"resolution": {
"values": [
{
"timex": "PT30M",
"type": "duration",
"value": "1800"
}
]
}
},
{
"entity": "5:30 pm",
"type": "builtin.datetimeV2.time",
"startIndex": 62,
"endIndex": 68,
"resolution": {
"values": [
{
"timex": "T17:30",
"type": "time",
"value": "17:30:00"
}
]
}
},
{
"entity": "6",
"type": "builtin.number",
"startIndex": 31,
"endIndex": 31,
"resolution": {
"value": "6"
}
},
{
"entity": "30",
"type": "builtin.number",
"startIndex": 44,
"endIndex": 45,
"resolution": {
"value": "30"
}
},
{
"entity": "5",
"type": "builtin.number",
"startIndex": 62,
"endIndex": 62,
"resolution": {
"value": "5"
}
},
{
"entity": "30",
"type": "builtin.number",
"startIndex": 64,
"endIndex": 65,
"resolution": {
"value": "30"
}
}
]
}
推荐答案
您可以为"people"构建数字和简单实体的复合实体,以便返回的实体将数字和人员的简单实体名称表示为6.
You could build a composite entity of number and simple entity for "people" so that the entity that comes back indicates 6 as number and simple entity name as people.
这篇关于LUIS将TIME和DURATION视为数字ENTITY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!