This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Table of Contents

Feedback loop for text analysis

Beginning with Pega® Platform 7.3.1, you can improve the accuracy of text analytics models in your application by using the pxCaptureTAFeedback activity to create a feedback loop for your models. With this activity, you can manually correct unexpected or inaccurate text analysis results. For example, you can change a sentiment value from positive to negative. You can then update the model that performed the analysis by feeding it the corrected outcomes. By continuously gathering and feeding feedback data to your machine-learning models, you can gradually improve the accuracy of text analysis in your application.

Consider the following example text:

I love @Company, we always have this random battle where I fight for internet connection for an hour or so.

Sarcastic comments like this example are often a challenge for machine classifiers because, in natural language, people can express negative emotions through positive words.

Feedback loop in an NLP sample

Feedback loop in the NLP Sample application

Now, you can specify the expected outcome of the analysis and submit it to the machine-learning model so that the model can learn from that outcome. That outcome is stored in the internal pr_data_model_training table until you feed it to the model in your application, for example, through the Analytics Center.

Adding feedback to a text analytics model in the Analytics Center

Adding feedback to a text analytics model in the Analytics Center

Feedback loop data model

The data model for the feedback loop is defined in the Data-Decision-Model-Training class. This class contains several properties, the most important of which are the following:

  • pyType – Defines the type of data that the text input represents, for example, Train or Test.
  • pxModelType – Defines the type of text analysis model, for example, Sentiment, Intent, Entity, and so on.
  • pyMachineOutcome – Contains the predicted outcome of machine analysis, for example, a sentiment value, an intent match, or a detected category.
  • pyActualResult – The expected outcome of the text analysis. You can manually specify this property. For example, you can specify a different sentiment value, detected category, entity, intent match, and so on.
  • pxVersion – The model version. Whenever a text analytics model is updated with new feedback, the model's version number increases.

Feedback loop API data model

Feedback loop data model

100% found this useful

Related Content

Have a question? Get answers now.

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