LinkedIn
Copied!

Table of Contents

Configuring language settings in text predictions

Define the languages to use with your text prediction and control how the prediction detects languages in an analyzed document. For example, you can enable a fallback language in case your text prediction does not detect the language when analyzing content that is written in multiple languages.

You can also configure a spell checker to categorize the text with a greater confidence score, making the analysis more accurate and reliable. The spell checker feature is available only for topic analysis. You can use English, Spanish, French, and German default dictionaries. You can also upload custom dictionaries that best suit your business needs. Each spell checker decision data rule can have multiple language dictionaries associated with it. Each dictionary decision data object has the following properties:

Language
Indicates the language of the dictionary.
Spell Checker Property
Contains text files with dictionary entries. You can classify the text files into different categories, such as Main, Supplemental, and so on.
  1. Open the text prediction:

    1. In the navigation pane of App Studio, click Channels.

    2. In the Current channel interfaces section, click the icon that represents a channel for which you want to configure the text prediction.

    3. On the channel configuration page, click the Behavior tab, and then click Open text prediction.

  2. In the Prediction workspace, click the Settings tab, and scroll down to the Language settings section.

  3. To define the languages that you want to use in this text prediction, in the Languages field, select one or more languages for the text that you want to analyze.

    This setting does not impact the run of the text prediction. Use this setting to manage the language options on the Outcome and Analysis tabs.

    For more information, see Language support for NLP.

  4. To change the detection method for incoming text, in the Language detection list, select one of the following options:

    Choices Actions
    Automatically detect the language
    1. Select Automatically detect language.

    2. Optional:

      To define the language to use when no other language is automatically detected, select the Enable fallback language check box, and then select the fallback language.

    Use the language metadata tag (lang:) of the incoming records for language detection Select Language detected by publisher.
    Always assign a specific language to the analyzed text Select Specify language, and pick a language from the list.
  5. To enable a spell checker, select the Enable spell checking check box, and then select a spell checker rule.

    The default spell checker decision data rule is pySpellChecker.
    Language settings in a text prediction
  6. Click Save.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.