Does Microsoft chatbot (Node.js) support multiple languages ​​in a single LUIS.AI application?

I have a chatbot that is built into the Microsoft bot shell with Node.js, and I integrated this bot with an NLP infrastructure called LUIS.AI to handle user conversations based on their intentions and essence. Here I need this bot to support several languages ​​in one LUIS application, but this does not allow us to do this. Is there any hacker method for supporting multiple languages ​​in one LUIS application or at the code level.?

+2
source share
1 answer

Code Level . You can create several LUIS applications and connect them to your LuisRecognizer using ILuisModelMap . The keys will be your locales.

// 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);

You will also want to use the localization capabilities of the SDK to generate your invitations and messages.

LUIS Level: LUIS only supports one language for each application, so you need to create several applications.

+3
source

Source: https://habr.com/ru/post/1687432/


All Articles