Skip to main content


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

Adding and deleting languages from models

Updated on May 17, 2024

Use the pxAddLanguageToModel and pxDeleteLanguageFromModel APIs to add and delete languages from text analytics models.

pxAddLanguageToModel

Use the pxAddLanguageToModel API to add a language to any type of text analytics model.

This API has the following input properties:

pxAddLanguageToModel API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
AppliesToThe applicable class of the text analyzer.
LanguageThe language of the model to add.
EntityGranularityThe Sentence or Paragraph analysis granularity of entity model.

The pxAddLanguageToModel API validates the Decision Data rule that holds a text analytics model and then adds a new language to the rule. For example, if the rule holds a model only for the English language and the API is called to add a model for the French language, the API call resolves successfully and the decision data now holds English and French versions of the model. If the text analyzer is in a blocked ruleset, then that text analyzer is saved in the next available ruleset.

pxDeleteLanguageFromModel

Use the pxDeleteLanguageFromModel API to delete a language from a model, together with the associated artifacts. If the text analyzer is in a blocked ruleset, then that text analyzer is saved in the next available ruleset.

This API has the following input properties:

pxDeleteLanguageFromModel API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
AppliesToThe applicable class of the text analyzer.
LanguageThe language of the model to delete.

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