本文介绍了如何将多个Luis模型集成到bot框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个机器人,该机器人将响应用户对我的私人用例的查询.同样,我希望使机器人能够回答一些常见问题,例如天气或路线等.因此,我在路易斯中构建了自己的应用程序a>,并且还尝试使用预构建的cortana意图.下面的示例
[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.
How can i use both the Luis models in my Class? Please help
推荐答案
大约20天前,他们更新了LuisDialog以支持多个LuisModel和ILuisService实例(选中此提交).更改已在NuGet 1.2.4中发布.
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框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!