Skip to main content


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

Creating new models

Updated on May 17, 2024

Use the pxCreateEmptyModel and pxSaveAsModelAPI APIs to create new text analytics models.

pxCreateEmptyModel

Use the pxCreateEmptyModel API to create an empty text analytics model. The outcome of the API is a Decision Data rule.

This API has the following input properties:

pxCreateEmptyModel API input properties

ParameterDescription
ModelNameThe name of the new model.
DescriptionThe model description.
ClassNameThe applicable class of the model.
RuleSetNameThe name of the target ruleset.
RuleSetVersionThe version of the target ruleset.
AnalysisTypeAvailable values:
  • Entity
  • Classification
  • Sentiment
  • Intent
LanguageThe model language.
EntityGranularityAvailable values:
  • Sentence
  • Paragraph

pxSaveAsModelAPI

Use the pxSaveAsModelAPI to perform a Save As operation on an existing text analytics model. The API creates a model with a new name and copies all related artifacts from the source model to the newly-created model.

This API has the following input properties:

pxSaveAsModelAPI input properties

ParameterDescription
ModelNameThe name of the new model.
DescriptionThe description of the text analyzer.
AppliesToThe applicable class of the text analyzer.
RuleSetThe target ruleset of the new text analyzer.
RuleSetVersionThe target ruleset version of the new text analyzer.
ExistingModelNameThe name of the source text analyzer.
ExistingModelAppliesToThe class of the source text analyzer.
StatusReturns the operation status.
StatusMsgReturns the error message if the operation fails.
  • Previous topic Adding model feedback
  • Next topic Returning model analysis and specifying the repository for model training data

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