【发布时间】:2018-11-23 03:01:54
【问题描述】:
我有一个用于预订音频呼叫的 LUIS 模型,例如“BookAcall”,并且我的话语如下“ 我使用预建实体 Number 从句子中提取任何数字实体。
为 2 个地点预订 5 人的语音通话
现在,从 LUIS json 我得到了两个实体作为数字。
- 5 和 other 是 2 但在 LUIS 中无法理解 5 不是 Of people 和 2没有地点
需要建议。 谢谢
{
"query": "book a call tomorrow for 5 people for 2 location",
"topScoringIntent": {
"intent": "BookACall",
"score": 0.9560004
},
"intents": [
{
"intent": "BookACall",
"score": 0.9560004
},
{
"intent": "CryptoTrading",
"score": 0.0283502769
},
{
"intent": "None",
"score": 0.00855541
}
],
"entities": [
{
"entity": "tomorrow",
"type": "builtin.datetimeV2.date",
"startIndex": 12,
"endIndex": 19,
"resolution": {
"values": [
{
"timex": "2018-06-15",
"type": "date",
"value": "2018-06-15"
}
]
}
},
{
"entity": "location",
"type": "NoOfLocation",
"startIndex": 40,
"endIndex": 47,
"resolution": {
"values": [
"Location"
]
}
},
{
"entity": "people",
"type": "NoOfUsers",
"startIndex": 27,
"endIndex": 32,
"resolution": {
"values": [
"People"
]
}
},
{
"entity": "5",
"type": "builtin.number",
"startIndex": 25,
"endIndex": 25,
"resolution": {
"value": "5"
}
},
{
"entity": "2",
"type": "builtin.number",
"startIndex": 38,
"endIndex": 38,
"resolution": {
"value": "2"
}
}
]
}
【问题讨论】:
-
人和地点是实体吗?
-
我在 LUIS 中使用 NoOfUsers 作为列表类型的实体,如屏幕截图所示
-
所以我想位置也是一个实体
-
@AnitaGeorge 是的
标签: botframework bots azure-language-understanding