UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Document Understanding 活动

上次更新日期 2026年4月22日

分类器原生活动类

分类器原生活动是一个抽象类,用于实现 IClassifierActivity 接口和原生活动抽象类,这对于创建对文档进行分类的原生活动至关重要。

定义

  • 命名空间: UiPath.DocumentProcessing.Contracts.Classification
  • 程序集: UiPath.DocumentProcessing.Contracts

描述

实现 UiPath.DocumentProcessing.Contracts.Classification.IClassifierActivity 接口和 System.Activities.NativeActivity 抽象类的抽象类。

This class must be implemented in order to construct a NativeActivity for document classification, compatible with the Classify Document Scope activity and the Document Processing infrastructure.

In order to implement this abstract class, the Execute(NativeActivityContext context) method needs to be overridden.

备注:

所有子活动的“对文档范围进行分类”活动都会自动填充所有已定义的 InArguments

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 the document types expected to be understood and processed by the classifier activity. These document types are set by the Classify Document Scope activity after their configuration in the Configure Classifiers wizard of the scope activity.

例如:

成员

构造函数
  • ClassifierNativeActivity() - 受保护的默认构造函数。
方法
  • GetCapabilities() - 在设计时检索分类器能够分类的文档类型的列表。 此方法仅在设计时调用,因此不应使用任何 InArgument。
  • ProvidesCapabilities() - 如果分类器能够提供功能列表,则返回 true。
属性
  • DocumentPath InArgument<string> - 文档文件的路径。
  • DocumentText InArgument<string> - 文档的文本版本。
  • DocumentObjectModel InArgument<UiPath.DocumentProcessing.Contracts.Dom.Document> - 文档的文档对象模型。
  • DocumentTypes InArgument<UiPath.DocumentProcessing.Contracts.Classification.ClassifierDocumentType[]> - 您希望分类器考虑的文档类型信息。
  • PersistenceId string - 作用域活动为正确跟踪和配置分类器活动而使用的唯一不透明 ID。
  • ClassifierResult OutArgument<UiPath.DocumentProcessing.Contracts.Classification.ClassifierResult> - 分类器活动的输出。
  • PredictionId InArgument<string> - 标识在工作流中处理相同的文档。 它由DocumentId + JobId组成。
  • 定义
  • 描述
  • 成员

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新