Luis.ai返回几乎相似的话语的不同意图

发布于 2025-01-28 14:31:15 字数 476 浏览 5 评论 0 原文

我将路易斯用作使用Microsoft Bot框架构建的聊天机器人的语言理解服务。 我观察到奇怪的行为:

  1. 我在意图“可扣除” 中添加了一个字符串
  2. 用户发送“什么是我的扣除额” 字符串--->路易斯返回所需的意图“可扣除”。 好吧!
  3. 用户发送“我的扣除是什么?” “我的扣除额是什么?在第二种情况下问标记)--->路易斯还返回其他一些意图(与免赔额完全无关)。 不好!
  4. 也,我看不到像“终点说话”部分中的任何话语,这样我就可以将话语重新分配给所需的意图。 根本不好!

任何想法如何修复它,如何改善拼写错误的话语缺乏符号以及 -非常重要 - 单词的同义词?

I use LUIS as a Language Understanding Service for our Chat Bot built with Microsoft Bot Framework.
And I observe the strange behavior:

  1. I added a string "what is my deductible?" to the intent "Deductible".
  2. A user sends "what is my deductible" string ---> LUIS returns the desired intent "Deductible". OK!
  3. A user sends "what is my deductibl?" OR "what is my deductible" (misspelling in the first case, lack of a question mark in the second case) ---> LUIS returns some other intents (which are not related to deductible AT ALL). NOT OK!
  4. Also, I don't see any utterances like those in "Review Endpoint Utterances" section so I could reassign the utterances to the desired intent. NOT OK AT ALL!

Any ideas how to fix it, how to improve the recognition for utterances with misspellings, lack of symbols and also - it's very important - with synonyms of the words?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

季末如歌 2025-02-04 14:31:15

为了通过拼写错误,缺乏符号和其他要求来改善话语,需要使用正确的语法添加话语模板。

拼写错误

以下代码为v2预测端点

{
  "query": "Book a flite to London?",
  "alteredQuery": "Book a flight to London?",
  "topScoringIntent": {
    "intent": "BookFlight",
    "score": 0.780123
  },
  "entities": []
}

以下代码为v3预测端点

{
    "query": "Book a flite to London?",
    "prediction": {
        "normalizedQuery": "book a flight to london?",
        "topIntent": "BookFlight",
        "intents": {
            "BookFlight": {
                "score": 0.780123
            }
        },
        "entities": {},
    }
}

,使用以下资源,使用有效的语法执行讲话完美创建。

https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis/luis-how-how-to-to-to-to-model-intent -pattern

https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-data-alteration?tabs = v3

To improve the utterances with misspellings, lack of symbols and other requirements, there is a need to add the templates of utterance using correct syntax.

misspellings

The below code is V2 prediction end point

{
  "query": "Book a flite to London?",
  "alteredQuery": "Book a flight to London?",
  "topScoringIntent": {
    "intent": "BookFlight",
    "score": 0.780123
  },
  "entities": []
}

The below code is V3 prediction end point

{
    "query": "Book a flite to London?",
    "prediction": {
        "normalizedQuery": "book a flight to london?",
        "topIntent": "BookFlight",
        "intents": {
            "BookFlight": {
                "score": 0.780123
            }
        },
        "entities": {},
    }
}

To perform the utterances perfect creation using valid syntaxes, Using the following resources.

https://blog.botframework.com/2018/06/07/improving-accuracy-in-luis-with-patterns/

https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-model-intent-pattern

https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-data-alteration?tabs=V3

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文