UiPath Activities

The UiPath Activities Guide

TrainableClassifierCodeActivity Class

Namespace: UiPath.DocumentProcessing.Contracts.Training
Assembly: UiPath.DocumentProcessing.Contracts


Abstract class that implements the UiPath.DocumentProcessing.Contracts.Training.ITrainableClassifierActivity interface and the System.Activities.CodeActivity abstract class.
This class should be implemented in order to construct a CodeActivity for classifiers training, compatible with the Train Classifiers Scope activity and the document processing infrastructure.


All the defined InArguments are automatically populated by the Train Classifiers Scope activity for all child activities.

The InArguments contain:

Information about the document that is to be classified, specifically the original file path, the text version, and the document object model.
Information about each field that training should be performed on, expected to be understood and processed by the training activities. These document types are set by the Train Classifiers Scope activity after its configuration in the Configure Training wizard of the scope activity.
This activity has no OutArguments.



  • TrainableClassifierCodeActivity() - The protected default constructor.


  • DocumentPath InArgument<string> - The file path of the document.
  • DocumentText InArgument<string> - The text version of the document.
  • DocumentObjectModel InArgument<UiPath.DocumentProcessing.Contracts.Dom.Document> - The document object model of the document.
  • HumanValidatedData InArgument<UiPath.DocumentProcessing.Contracts.Results.ExtractionResult[]> - The extraction results for the processed document, that you want to use for training.
  • PersistenceId string - The unique, opaque ID that is used by the scope activities in order to correctly track and configure the training activity.

Updated about a year ago

TrainableClassifierCodeActivity Class

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.