Starting with v2.2.0, this abstract class has been deprecated.
Abstract class that implements the
UiPath.DocumentProcessing.Contracts.Training.ITrainableActivity interface and the
System.Activities.CodeActivity abstract class.
This class should be implemented in order to construct a
CodeActivity for classifier and extractor training, compatible with the Train Classifiers And Extractors activity and the document processing infrastructure.
In order to implement this abstract class, the
context) method needs to be overridden.
All the defined InArguments are automatically populated by the Train Classifiers And Extractors 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 activity. These document types are set by the Train Classifiers and Extractors activity after their configuration in the Configure Training wizard of the scope activity.
This activity has no OutArguments.
TrainableCodeActivity()- protected default constructor
DocumentPath(InArgument<string>) - the file path to 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 should be used 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 11 months ago