Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring language settings in text predictions

Updated on July 5, 2022

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.
    Note: 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:
    ChoicesActions
    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 detectionSelect Language detected by publisher.
    Always assign a specific language to the analyzed textSelect 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.
    Note: The default spell checker decision data rule is pySpellChecker.
    Language settings in a text prediction
    Language settings for a text prediction including language detection, fallback language, and spell check
  6. Click Save.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us