如何在LUIS中不使用火车语音的情况下在C#中使用LUIS无意图 [英] How to use LUIS None Intent in c# without train utterance at LUIS

查看:62
本文介绍了如何在LUIS中不使用火车语音的情况下在C#中使用LUIS无意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了无意图",如下所述.

I have implemented the None Intent as follows..

[LuisIntent("None")]
public async Task None(IDialogContext context, LuisResult result)
{
      await context.PostAsync("I'm sorry. I didn't understand you.");
      context.Wait(MessageReceived);            
}

但是看起来我需要在路易斯一侧训练一些说话,这是我不想要的.我正在寻找在luis中找不到或无法识别的任何东西,应该触发None Intent处理程序. 我该如何实现?

But looks like i need to train some utterance at luis side, which i don't want. I am looking something whichever is not found or recognize at luis, should fire the None Intent handler. How do I achieve this ?

推荐答案

还将以下行添加到您的None方法中:

Add also the following line to your None method:

[LuisIntent("")]

如果Luis无法识别意图,将返回一个空字符串,因此您的BOT将能够处理它.

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

None意图仍然有用.想象一个LUIS识别意图但由于某种原因而识别错误的场景?在这种情况下,您将需要将该发声设置为None,然后进行重新训练.

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.

这篇关于如何在LUIS中不使用火车语音的情况下在C#中使用LUIS无意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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