Skip to main content

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

Learning natural language processing with NLP Sample

Updated on May 17, 2024

NLP Sample is a reference application that contains a set of ready-to-use tools and example use cases to guide you through natural language processing (NLP) on Pega Platform. After you become comfortable with the examples, you can build your own tools for text analytics and use NLP Sample to analyze news-feeds, emails, and posts on social media.


Install NLP Sample by importing the archive file that contains the application ruleset.

  1. Download the following archive file that contains the NLP Sample ruleset: NLP Sample 8.1.
  2. Import the archive file to your application. For more information, see Importing rules and data by using the Import wizard.
  3. Log in to Pega Platform by entering the following credentials:
    • User name – admin@nlpsample
    • Password – rules
  4. In Dev Studio, open NLP Sample by clicking Launch web interfaceNLP Sample.

Understanding natural language processing

Discover natural language processing features in Pega Platform, explore how to use the processing outcome to create a case, and learn how to increase the accuracy of machine-learning models by reviewing the analyzed records and providing feedback.

Exploring NLP features

Learn about natural language processing features in Pega Platform by exploring text categorization, text extraction, and language detection. Use the default examples or provide custom input to classify text into various categories, derive sentiment, extract named entities, and create summaries.

Understanding NLP in the application context

Learn how to use text analysis outcome to create a case and assign it to an operator or a group. After you process input records, you can view a summary report as well as a detailed analysis of individual records.

Updating machine-learning models with feedback

Increase machine-learning models accuracy by updating records that you analyze with your feedback, for example, the correct sentiment value, intent, category, or entity. When you collect the updated records, you can retrain the corresponding model to classify similar records correctly in future analyses.

Tip: You can save all records that you analyze in the NLP Sample database for reporting. Viewing a detailed analysis of individual records enhances your insight into the model performance and facilitates model update through feedback. The following example shows how to save records in NLP Sample through a data flow:
Saving records in NLP Sample
Example of saving records in NLP Sample through a data flow.

For more information about tools and features for text analytics, see Building text analyzers.

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. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us