如何将多个Luis模型集成到bot框架 [英] How to integrate multiple Luis model to bot framework
问题描述
我正在开发一个机器人,该机器人将响应用户对我的私人用例的查询.同样,我希望使机器人能够回答一些常见问题,例如天气或路线等.因此,我在路易斯中构建了自己的应用程序a>,并且还尝试使用预构建的cortana意图.下面的示例
I am developing a bot which will respond to users query to my private use cases. Similarly i would like to enable bot to answer some of common questions like Weather or directions etc. So i built a own app in Luis and also trying to use Pre-built cortana intents. Sample below
[LuisModel("c413b2ef-382c-45bd-8ff0-f76dad0e2a821", "697asfc173ce6f40aca4c99e7d38assad6cad")]
public class myClass: LuisDialog<T>
{
}
这将仅接受Cortana Intent或我自己的Intent,具体取决于订阅ID和密钥.
This will only accept either Cortana Intents or my own Intents depends on subscription id and key.
如何在课堂上同时使用两种Luis模型?请帮助
How can i use both the Luis models in my Class? Please help
推荐答案
大约20天前,他们更新了LuisDialog以支持多个LuisModel和ILuisService实例(选中此
Around 20 days ago, they updated the LuisDialog to support multiple LuisModel and ILuisService instances (check this commit). The change was already released in NuGet 1.2.4.
这篇关于如何将多个Luis模型集成到bot框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!