UiPath Activities

The UiPath Activities Guide

TrainableNativeActivity Class

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

Starting with v2.2.0, this abstract class has been deprecated.

Description

Abstract class that implements the UiPath.DocumentProcessing.Contracts.Training.ITrainableActivity interface and the System.Activities.NativeActivity abstract class.
This class should be implemented in order to construct a NativeActivity 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 Execute(NativeActivityContext context) method needs to be overridden.

Note:

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.

Members

Constructors

  • TrainableNativeActivity() - protected default constructor

Properties

  • 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 9 months ago


TrainableNativeActivity Class


Suggested Edits are limited on API Reference Pages

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