Adding and deleting languages from models
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
Parameter | Description |
Purpose | The purpose of the text analyzer. |
AppliesTo | The applicable class of the text analyzer. |
Language | The language of the model to add. |
EntityGranularity | The 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
Parameter | Description |
Purpose | The purpose of the text analyzer. |
AppliesTo | The applicable class of the text analyzer. |
Language | The language of the model to delete. |
Previous topic Running text analyzers Next topic Adding model feedback