gpt4 book ai didi

nlp - Microsoft LUIS 无法识别实体

转载 作者:行者123 更新时间:2023-12-04 16:17:54 25 4
gpt4 key购买 nike

我已经为 MS LUIS 创建了模型。它能敏锐地识别意图,但没有识别或部分识别任何实体。有什么问题吗?

我的步骤是:在 LUIS 应用程序中导入新版本 -> 训练 -> 发布 -> 测试。

当我输入模型示例中的话语时 - 它找到了。

也例如当我键入:“创建任务检查为什么它不显示全部”时,我得到了这个(任务名称的一小部分):

 "entities": [
{
"entity": "check why",
"type": "taskName",
"startIndex": 12,
"endIndex": 20,
"score": 0.8236943,
"role": ""
}
]

这里是 JSON 模型:

{
"luis_schema_version": "3.0.0",
"versionId": "0.12",
"name": "Todo-Agent 0.4",
"desc": "This LUIS app has a AddTask and None intents.",
"culture": "en-us",
"intents": [
{
"name": "AddTask"
},
],
"entities": [
{
"name": "taskName",
"roles": []
}
],
"composites": [],
"closedLists": [],
"patternAnyEntities": [],
"regex_entities": [],
"prebuiltEntities": [],
"model_features": [],
"regex_features": [],
"patterns": [
{
"pattern": "add task - {taskName}",
"intent": "AddTask"
},
{
"pattern": "create task {taskName}",
"intent": "AddTask"
}
],
"utterances": [
{
"text": "2",
"intent": "None",
"entities": []
},
{
"text": "5",
"intent": "None",
"entities": []
},
{
"text": "add the task - do something",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 15,
"endPos": 26
}
]
},
{
"text": "add the task test text",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 13,
"endPos": 21
}
]
},
{
"text": "bla bla",
"intent": "None",
"entities": []
},
{
"text": "create task bad response",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 12,
"endPos": 23
}
]
},
{
"text": "create task check again",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 12,
"endPos": 22
}
]
},
{
"text": "create task check entity",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 12,
"endPos": 23
}
]
},
{
"text": "create task do something wrong",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 12,
"endPos": 29
}
]
},
{
"text": "create task go home",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 11,
"endPos": 18
}
]
},
{
"text": "create task testone",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 12,
"endPos": 18
}
]
}
]
}

提前感谢您的帮助。

最佳答案

我想我已经通过包含一些具有不同“taskName”值和长度(特别是长度!!-它停止剪切 taskName)的非常不同的话语来解决这个问题。

例如

  {
"text": "create item test with my personal bot and see what will happen when i type some long task name and than can train and publish model when it works great",
"intent": "AddTask",
"entities": [
{
"entity": "taskName",
"startPos": 12,
"endPos": 142
}
]
},

关于nlp - Microsoft LUIS 无法识别实体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50526101/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com