Skip to main content


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

Building models in text predictions

Updated on July 5, 2022

After you add new training data for topics or entities that you want to detect in incoming messages, your text prediction contains pending training data. You need to build the topic and entity extraction models to train them with this new training data.

The following example shows the pending training data for entity extraction models: three items of data for the airlines_entities model, and one item for the pySystemEntities model.

Pending training data
Pending training data
Important: The system builds the models in an asynchronous process by using a job scheduler. The job scheduler for building models uses the System Runtime Context (SRC) for rule resolution. To enable the model building process, you must add your application to the SRC.
Before you begin: Add your application to the System Runtime Context. For more information, see Automating the runtime context management of background processes.
  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 Build.
  3. In the Build models window, select the models that you want to build.
    Selecting a model for a new build
    Selecting the Airlines Demo topic model to train with the new training data
  4. Click Build.Result: The training of the model starts. The status of the training is displayed on the message bar below the prediction header. You can view detailed progress information by clicking training jobs. At any time, you can stop the model building process by clicking Cancel all builds.
    Model training in progress a text prediction
    A status bar in a text prediction for a model training in progress
  5. After the build is complete, click View report to display a summary of the training.
    In the model training report, you can compare the f-scores of the models before and after the training. In the following example, the f-score of the model improved by 0.03 points after the training.
    Model training report
    A model training report shows a rise in f score by 0.03 points after the training

    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