【发布时间】:2018-04-06 14:20:53
【问题描述】:
我是 LUIS 新手,但我仍在努力解决问题,我似乎无法弄清楚的一件事是如何让我的 LUIS 应用识别哪些实体属于同一个复合实体时有更多比一个话语中的一个实例。我知道这很令人困惑,让我尝试更好地解释:
我的测试应用是关于订购东西的。
我有这样的话语:
请为我购买 2 个红辣椒albuns 和一个惊人的蜘蛛侠形象
返回的 JSON 是这样的:
{
"query": "purchase for me 2 red hot chilli pepper albuns and an amazing spiderman figure please",
"topScoringIntent": {
"intent": "Order",
"score": 0.9981847
},
"intents": [
{
"intent": "Order",
"score": 0.9981847
},
{
"intent": "Read",
"score": 0.0023417694
},
{
"intent": "None",
"score": 0.00118408469
}
],
"entities": [
{
"entity": "red hot chilli pepper albuns",
"type": "Item.Description",
"startIndex": 18,
"endIndex": 45,
"score": 0.8821352
},
{
"entity": "amazing spiderman figure",
"type": "Item.Description",
"startIndex": 54,
"endIndex": 77,
"score": 0.9167113
},
{
"entity": "2",
"type": "Item.Quantity",
"startIndex": 16,
"endIndex": 16,
"score": 0.9843564
},
{
"entity": "an",
"type": "Item.Quantity",
"startIndex": 51,
"endIndex": 52,
"score": 0.948889554
}
]
}
它正确识别了实体,但它不知道“2”对应于“red hot chili pepper albuns”,“an”对应于“the Amazing spiderman figure”
我的实体是:
Item.Quantity - simple entity
Item.Description - simple entity
Item.Number - simple entity
Item - composite entity with the above as children
这有可能吗?
【问题讨论】:
标签: json botframework azure-language-understanding