If you notice that the system does not properly detect the language of incoming emails or chat messages, use the following tips to resolve the problem.
The following causes might prevent the system from detecting the language properly:
- The expected language might not be enabled for natural language processing (NLP) in Prediction Studio settings.
- The analyzed text might too short. For example, when you analyze texts in similar languages, a small sample might not provide sufficient data for the NLP engine to detect the language correctly.
- Depending on the number of languages that you use, perform one of the
following actions to get the expected output:
Options Actions Using a single language
In the text prediction settings, specify the language that you want to use.
The default setting in the text prediction is to detect the language automatically. If you are using this text prediction to detect a single language, and the language is not detected, you can configure the text prediction to detect a specific language.
For more information, see Configuring language settings in text predictions.
Using multiple languages
- Check whether the language that you are expecting
is enabled for NLP in the Prediction Studio settings.
For more information, see Enabling languages for NLP. Note: This setting is system-wide, which means that it applies to all applications in your system.
- Check whether the analyzed text is long
enough.Language detection might not work properly on a short piece of text. The text should be at least three sentences long. For example, if you are using an email channel, the email body should contain a lengthy text of at least three sentences for the language to be detected properly.
- Check whether the language that you are expecting is enabled for NLP in the Prediction Studio settings.