Skip to main content


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

Adding model feedback

Updated on May 17, 2024

Use the pxCaptureTAFeedback, pxUpdateModels and pxCopyNLPFeedback to provide feedback to text analytics models.

pxCaptureTAFeedback

Use the pxCaptureTAFeedback API to capture and store feedback data for a text analytics model. The output of the API is the ID number of the feedback record that is stored for the specified model.

This API has the following input properties:

pxCaptureTAFeedback API input properties

ParameterDescription
ModelNameThe name of the new model.
ClassNameThe applicable class of the model.
ModelTypeAvailable values:
  • Entity
  • Classification
  • Sentiment
  • Intent
LanguageThe language of the model.
TextFeedback text. Use this field for text extraction analysis. Paste annotated text with both the corrected and previously correct entities.
ActualResultThe expected category assignment of the analyzed text. Use this field for intent, sentiment, and topic detection.
MachineOutcomeThe prediction that the model made.
TASummaryIDThe ID number of the summary, if enabled.
FeedbackIDThis value returns an ID of the feedback record.
IsTest

Marks if the feedback record is for test purposes. If true, the model does not include the record in the feedback.

Available values:

  • true
  • false

pxUpdateModels

Use the pxUpdateModels API to retrain a model with the recorded feedback. The API outputs the operation status, and a status message if the operation fails.

This API has the following input properties:

pxUpdateModels API input properties

ParameterDescription
PurposeThe purpose of the text analyzer.
AppliesToThe applicable class of the text analyzer.
ClassNameThe applicable class of the model.
LanguageThe model language.
StatusReturns the operation status.
StatusMsgReturns the error message if the operation fails.

pxCopyNLPFeedback

Use the pxCopyNLPFeedback API to feedback records between models in the same system.

This API has the following input properties:

pxCopyNLPFeedback API input properties

ParameterDescription
SourceModelNameThe name of the model that is the source of feedback data.
SourceAppliesToClassThe applicable class of the source model.
SourceRuleSetThe ruleset of the source model.
TargetModelNameThe name of the model to which you want to copy the feedback data.
TargetAppliesToClassThe applicable class of the model to which you want to copy the feedback data.
TargetRuleSetThe ruleset of the model to which you want to copy the feedback 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