【发布时间】:2018-10-04 15:07:21
【问题描述】:
我创建了一个这样的 LUIS 话语,其中包含一个简单的实体: 正在为客户 abc 处理订单
将 abc 替换为简单实体 vf_NARCName
当我在机器人中输入如下问题时: 客户动物皮肤病医院的订单处理中
这里的客户名称是 Animal Dermatology Hospital,它由空格分隔,然后当我通过 LUIS Rest API 获取数据时,我将 Animal 作为实体值而不是 Animal Dermatology Hospital,有时也没有返回实体值
{
"query": " orders in process for customer Animal Dermatology Service",
"topScoringIntent": {
"intent": "OrderDetails_2a598c9b-7cb5-4113-9aca-435b55bbe19e",
"score": 0.7547371
},
返回数据
{
"query": "how many orders are currently in process for customer Animal Dermatology Service",
"topScoringIntent": {
"intent": "OrderDetails_2a598c9b-7cb5-4113-9aca-435b55bbe19e",
"score": 0.6452578
},
"entities": []
}
但如果我只用 Animal 查询它,那么会返回正确的数据
返回数据
{
"query": "how many orders are currently in process for customer Animal",
"topScoringIntent": {
"intent": "OrderDetails_2a598c9b-7cb5-4113-9aca-435b55bbe19e",
"score": 0.8928922
},
"entities": [
{
"entity": "animal",
"type": "vf_NARCName",
"startIndex": 54,
"endIndex": 59,
"score": 0.500023663
}
]
}
【问题讨论】:
标签: .net json botframework azure-language-understanding