// Assuming you've already instantiated your bot, time to instantiate
// the LuisRecognizer with an ILuisModelMap.
var many_language_recognizer = new builder.LuisRecognizer({
'en': englishModel || process.env.EN_LUIS,
'es': spanishModel || process.env.ES_LUIS,
'fr': frenchModel || process.env.FR_LUIS
});
bot.recognizer(many_language_recognizer);
1 回答
Code Level: 您可以使用ILuisModelMap创建多个LUIS应用程序并将其插入LuisRecognizer . 密钥将成为您的区域设置 .
您还需要使用SDK的本地化功能来生成提示和消息 .
LUIS Level: LUIS每个应用程序仅支持一种语言,因此必须创建多个应用程序 .