azure LUIS是否在一条消息中支持多意图 [英] Does azure LUIS support multi-intents in one message

查看:55
本文介绍了azure LUIS是否在一条消息中支持多意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我给出消息打开门并打开灯" ,则有两个意图

If I give the message "open the door and turn on the lights" come out two intents

  1. "OpenDoor"
  2. "TurnOnLights"
  1. "OpenDoor"
  2. "TurnOnLights"

路易斯支持吗?

谢谢

推荐答案

简短的回答是不,您不确定所找到的有效意图的数量".

Short answer would be "no, you will not be sure of the number of valid intents found".

当您测试一个句子时,LUIS会为您的项目的所有意图提供一个评分,而不是给出一个或两个意图.然后,您将使用这些评分来帮助您定义是否有1、2、3个有效信息.

LUIS is providing a scoring for all the intents of your project when you test a sentence, it is not giving one or two intents. Then it will be what you do with these scorings that will help you to define if there are 1, 2, 3 valid information.

例如,如果我定义一个具有2个意图的模型:

For example if I define a model with 2 intents:

  • 打开灯,例如打开灯"

  • Turn lights On with an exemple "turn on the lights"

以打开门"为例打开门

然后训练并测试:

{
  "query": "open the door and turn on the lights",
  "topScoringIntent": {
    "intent": "Turn lights On",
    "score": 0.9421587
  },
  "intents": [
    {
      "intent": "Turn lights On",
      "score": 0.9421587
    },
    {
      "intent": "Open doors",
      "score": 0.1412498
    },
    {
      "intent": "None",
      "score": 0.109745957
    }
  ],
  "entities": [

  ]
}

您可能会感到惊讶,即使查询包含话语,开门"的评分也很糟糕.

You can be surprised that the "Open doors" scoring is quite bad even if the query contains the utterance.

根据我对LUIS的经验,您不应尝试在1个查询中检测到多个意图.

From my experience with LUIS, you should not try to detect several intents in 1 query.

这篇关于azure LUIS是否在一条消息中支持多意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆