How to use LUIS None Intent in c# without train utterance at LUIS

后端 未结 1 1469
有刺的猬
有刺的猬 2021-01-24 15:45

I have implemented the None Intent as follows..

[LuisIntent(\"None\")]
public async Task None(IDialogContext context, LuisResult result)
{
      await context.Po         


        
1条回答
  •  一生所求
    2021-01-24 16:33

    Add also the following line to your None method:

    [LuisIntent("")]
    

    If Luis cannot recognize an intent, will return an empty string and so your BOT will be able to handle it.

    The None intent is still useful though; imagine an scenario where LUIS recognize an intent but that recognition for some reason is wrong? In that case, you will want to set that utterance as None and then retrain.

    0 讨论(0)
提交回复
热议问题