Bot Training - Other Languages

nlp
machine-learning

(Henry Correia) #1

Hello All,
Please, I would like to know how is the best approach to train the Bot in another Language.
For example, I have done already the training in Default Language (English) and I have activated another language (Brazilian-Portuguese), following the documentation: https://developer.kore.ai/docs/bots/advanced-topics/building-multi-language-bots/enabling-an-additional-language/#reupload
I have chosen the Option 1: Duplicate the configurations of the default language.
Then I have started to do some training. and I am not sure if it is correct. Please, consider the use case:

Default Language: English
Intent name: Installation

Additional Language: Brazilian Portuguese
Intent name: Installation (cannot be translate)

Going to Testing -> Utterance Testing -> I type in Portuguese: Instalação (means installation), I have got this results:
image

Is there a way to match Fundamental Meaning as well? And, how to train NER for other languages?
Thank you very much for your help!


(Yoga Ramya Mendu) #2

Hi @henry.correia,

Please follow the below steps:

  • Once you enable a language, say Portuguese(Brazillian), you can switch to the language and change the intent names, Train the utterances, patterns, etc specific to this language. These changes made here will not be copied to the default language.

image

  • Now, change the intent name for the task installation to Instalação.

image

image

  • Navigate to NLP >> Patterns and add “Instalação” as a pattern to the intent “Instalação”.

image

  • Now, go to “Testing” and test the utterance “Instalação”.

image

You can observe that the Fundamental meaning model is also matched.

Ideally, for a Default language (En), we would be matching through Fundamental meaning model.
In the case of an additional language, the ML model match is considered as the language utterance configuration, patterns, ML training depends on the individual developer, we would be considering the ML model match.

For explicit Fundamental meaning model match for the utterance in the additional language, you will need to add a pattern to the intent in that specific language as shown above.

Kindly go through and let us know if you need any further clarification on the above.

Regards,
Yoga Ramya.


(Henry Correia) #3

Hello Yoga,
Thank you very much for sending such detailed steps and of course worked perfectly again :slight_smile:
image
If I understood you correctly:

  1. Default language = ideal intent match is through Fundamental Meaning model
  2. Additional language = ideal intent match would be through ML, patterns, and for explicit FM match, it is needed to add pattern to the intent in the specific language.
    Is that correct?
    Thank you in advance
    Henry

(Yoga Ramya Mendu) #4

Hi @henry.correia,

Yes, you will need to add Patterns to intents in the additional language for Fundamental meaning model match.

Regards,
Yoga Ramya.


(Henry Correia) #5

Hi @yogaramya.mendu

Thank you very much!

Regards,
Henry