Skip to main content


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

Listing all available text analytics models and entity types

Updated on July 5, 2022

Use the D_pxTopicsInModel, D_pxTopicsInTextAnalyzer and D_pxListModelsInTextAnalyzerByType API to list all available text analytics models, and the D_pzEntityTypesInTextAnalyzer and D_pzGetEntityTypesForModel APIs to list all available entity types.

D_pxTopicsInModel

The D_pxTopicsInModel API produces a data page with a list of Text Analyzer topics per language. If you save this data page, you can also use it to update the topic list.

This API has the following input properties:

D_pxTopicsInModel API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
AppliesToThe applicable class of the text analyzer.
LanguagesA comma-separated list of languages. If left empty, the API provides the list of all topics in all languages in the model.

The following list provides the output model of the D_pxTopicsInModel API:

  • pxTopics(ENGLISH) {DataNLP-Taxonomy}
    • pxResults(1) {Data-NLP-TaxonomyRule}
      • pyCategory
      • pyName
      • pyTopicDisplayName
        • pxResults(1) {data-NLP-TaxonomyRule}
          • pyCategory
          • pyName
          • pyTopicDisplayName
          • pyShouldWords (If present)
          • pyNotWords (If present)
          • pyAndWords (If present)
          • pxResults(1) …

When you invoke the data page with the list of parameters, a tree structure lists the available topics at the language level. To update a topic value, edit the data page and save it. If you leave the Languages parameter empty, then the API lists all the languages available in the model. If the text analyzer is in a blocked ruleset, then that text analyzer is saved in the next available ruleset.

D_pxTopicsInTextAnalyzer

The D_pxTopicsInTextAnalyzer API provides a list of all topics in the text analyzer.

This API has the following input properties:

D_pxTopicsInTextAnalyzer API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
AppliesToThe applicable class of the text analyzer.

The D_pxTopicsInTextAnalyzer API returns a Page List property that contains a list of text analyzer models and their types.

D_pxListModelsInTextAnalyzerByType

The D_pxListModelsInTextAnalyzerByType API lists all models in a text analyzer in a Page List property.

This API has the following input properties:

D_pxListModelsInTextAnalyzerByType API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
AppliesToThe applicable class of the text analyzer.

D_pzEntityTypesInTextAnalyzer

Use the D_pzEntityTypesInTextAnalyzer API to list the entity types in a text analyzer. The output of this entity is a Page List property that contains all of the configured entity types in a text analyzer.

This API has the following input properties:

D_pzEntityTypesInTextAnalyzer API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
ClassNameThe applicable class of the text analyzer.

D_pzGetEntityTypesForModel

Use the D_pzGetEntityTypesForModel API to list the entity types in a model. The output of this entity is a Page List property that contains entity types from all languages in a model.

This API has the following input properties:

D_pzGetEntityTypesForModel API input properties

ParameterDescription
ModelNameThe model name.
ModelClassThe applicable class of the model.
  • Previous topic Returning model analysis and specifying the repository for model training data
  • Next topic Managing business changes

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