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

Document Understanding 活动

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

基于关键词的分类器

UiPath.IntelligentOCR.Activities.DocumentClassification.KeywordBasedClassifier

描述

此活动的功能如下:

  • 包含基于关键字的文档分类算法,可针对具有重复标题的文件进行分类。
  • Classifies a document based on a given training set, found in a specified file, if used inside the Classify Document Scope activity.

This activity can only be used together with the Classify Document Scope and Train Classifiers Scope activities.

项目兼容性

Windows - Legacy | Windows

配置

设计器面板
  • LearningFilePath - The full path to the file containing the classifier data. This field supports only strings and String variables.

    备注:

    Only one of the above parameters can be set at a time. You can use either the LearningData string or the LearningFilePath string.

    The LearningFilePath specifies the locations from where to retrieve the classifier data.

    The LearningData contains the actual information of that classifier.

属性面板

常见

  • “显示名称”- 活动的显示名称。

输入

  • LearningData - The string containing the serialized classifier data. This field supports only strings and String variables.

  • LearningFilePath - The full path to the file containing the classifier data. This field supports only strings and String variables.

    备注:

    Only one of the above parameters can be set at a time. You can use either the LearningData string or the LearningFilePath string.

    The LearningFilePath specifies the locations from where to retrieve the classifier data.

    The LearningData contains the actual information of that classifier.

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

    备注:

    The best practice is to create an empty .json file at that location, then use its name in the LearningFilePath field.

使用“管理学习”向导

您只需访问活动的管理学习向导,即可在设计时配置“基于关键字的分类器”。通过使用具有更新后学习文件路径的同一向导,可以使用同一向导来审核在文档分类训练阶段收集的数据。

This wizard allows you to configure and manage the keywords used by this activity for identifying the document type. It was created to suit the need for editing a file path. If a Learning Data parameter with a variable is used instead, then you are asked if you either want to edit a specific file path or to abort this operation.

备注:

“管理基于关键字的分类器学习”向导只能用于编辑和配置文件路径。

  1. Add a Keyword Based Classifier or Keyword Based Classifier Trainer activity to your workflow.

  2. Configure your Keyword Based Classifier activity by adding the path of a .json file. Take the following information into consideration, when configuring the classifier:

    • If no path is provided and the Manage Learning option is selected, then a pop-up is displayed, asking for a Learning File Path input. Once the path is provided, the wizard opens.
    • 可以添加变量而不是 .json 文件,但是,由于向导无法将学习模式应用于学习数据变量,因此它会要求您提供可编辑的特定文件路径。
  3. Select Manage Learning.

    The Manage Keyword Based Classifier Learning wizard window opens.

    Figure 1. The Manage Keyword Based Classifier Learning wizard overview

    “管理基于关键字的分类器学习”向导概览

  4. If no path is provided and the Manage Learning option is selected, then a pop-up is displayed, asking for a Learning File Path. Once the path is provided, the wizard opens.

    Figure 2. The Warning pop-up displayed if no path is provided and the Manage Learning option is selected

    如果未提供路径而选择了“管理学习”选项,则会显示“警告”弹出窗口

    备注:

    即使没有可用的 .json 文件,您也可以直接将新的 .json 文件的名称添加到活动中,系统会在指定的文件夹中自动创建 .json 文件。

为文档类型添加关键字

该向导包含您在分类法中定义的尽可能多的文档类型类别。您可以为每种文档类型添加单个或多个关键字。该活动学习特定文档的关键字,然后能够根据这些规则对特定类型的文档进行识别和分类。

所有条目都应作为字符串输入,并在 ""(引号)之间输入,并且您可以添加单个或多个值。要添加或删除关键字,请在向导中执行以下步骤:

  1. Select Add new keyword set to add an extra field to that category.
  2. Select the remove remove icon, to remove the field and its keywords.
  3. Select Save to save your wizard configuration. You can find all the added values in the .json file of the project.
    备注:

    根据 Visual Basic 约定(双引号),在“管理关键字”向导中作为关键字的一部分输入的双引号始终会转义,即使在 C# 风格的项目中也是如此。

Document Understanding 集成

The Keyword Based Classifier activity is part of the Document Understanding Solutions. Visit the Document Understanding Guide for more information.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新