Does azure LUIS support multi-intents in one message

老子叫甜甜 提交于 2020-01-16 18:15:27

问题


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

  1. "OpenDoor"
  2. "TurnOnLights"

does luis support this?

thanks


回答1:


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

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.

For example if I define a model with 2 intents:

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

  • Open doors with an example "open the door"

Then train and test:

{
  "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.

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



来源:https://stackoverflow.com/questions/48703996/does-azure-luis-support-multi-intents-in-one-message

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!