UiPath Documentation
activities
latest
false

Document Understanding 活动

上次更新日期 2026年5月5日

机器学习分类器

UiPath.DocumentUnderstanding.ML.Activities.MachineLearningClassifier

描述

用于使用 UiPath™ 提供的文档分类机器学习模型对文档中的数据进行分类。默认情况下, “机器学习分类器”活动可用于发票、采购订单、收据和水电费账单。此活动只能在“分类文档范围”活动中使用。

备注:

该活动不能用于新式项目。请访问Document Understanding 中的自动化,查看可用于新式项目的方法。

项目兼容性

Windows - Legacy | Windows

配置

设计器面板
  • Endpoint - Provide the public ML Skill URL from the AI Center service. An Endpoint is required for on-premises or different Orchestrator instance scenarios. Choose only Endpoint or ML Skills, not both.
  • MLSkill - Provides the MLSkills list available in the AI Center service. Choose the ML Skill hosting the document classification machine learning model. The ML Skill is the only available option when you connect the robot to the AI Center through the same Orchestrator instance.
  • ApiKey - 用于访问机器学习分类器的 API 密钥。如果在本地项目设置或 Document Understanding 框架中定义了“API 密钥”字段,则系统会自动预填充该字段。如果要手动添加 API 密钥,请访问“API 密钥”,了解有关检索 API 密钥的更多信息。
属性面板

常见

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

其他

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

服务器

  • ApiKey - 用于访问机器学习分类器的 API 密钥。如果在本地项目设置或 Document Understanding 框架中定义了“API 密钥”字段,则系统会自动预填充该字段。如果要手动添加 API 密钥,请访问“API 密钥”,了解有关检索 API 密钥的更多信息。
  • Endpoint - Provide the public ML Skill URL from the AI Center service. An Endpoint is required for on-premises or different Orchestrator instance scenarios. Choose only Endpoint or ML Skills, not both.
  • MLSkill - Provides the MLSkills list available in the AI Center service. Choose the ML Skill hosting the document classification machine learning model. The ML Skill is the only available option when you connect the robot to the AI Center through the same Orchestrator instance.
  • RetryOnFailure - Automatically retries the machine learning model execution, to eliminate transient network errors. If checked, the activity retries the execution.
  • Timeout (milliseconds) - Specifies the amount of time (in milliseconds) to wait for a response from the server before an error is thrown. The default value is 100000 milliseconds (100 seconds).
    备注:

    添加端点后,“ML 技能”选项的下拉按钮将被禁用,并显示以下消息:“该活动适用于端点或 ML 技能,但无法同时适用于两者。“请输入一个端点”,将“ML 技能”留空,或选择一种 ML 技能,将“端点”留空。”

使用机器学习分类器向导

  1. 在自动打开的“机器学习分类器”向导中,提供 ML 技能和 API 密钥信息。

    图 1. 要为机器学习分类器配置的“ML 技能”和“API 密钥”字段

    要为机器学习分类器配置的“ML 技能”和“API 密钥”字段

    备注:

    机器学习分类器仅适用于机器学习分类器技能。使用任何其他技能(收据、发票等)将导致出错。

  2. 如果您还希望使用输入的值作为活动(更确切地说是 ML 技能)的输入参数,请选择“更新活动参数”

  3. 选择“获取功能” 。完成此操作后,向导将关闭

  4. “数据提取作用域”中选择“配置提取程序” 。系统将显示向导。

    图 2.“配置分类器”向导

    “配置分类器”向导

  5. 将分类中使用的文档类型名称与 ML 技能使用的分类的类进行匹配。可以通过使用“获取功能”非常轻松地获取后者,您可以在首次放置活动时对其进行配置,也可以选择齿轮图标,然后从下拉列表中选择类名称即可。从下拉列表中选择一个选项会自动确认该字段。

  6. 配置所有字段后,选择“保存”

    重要提示:

    您不能为两个不同的字段选择相同的选项。

Document Understanding 集成

机器学习分类器活动是 Document Understanding 解决方案的一部分。如需了解详情,请访问Document Understanding 指南

  • 描述
  • 项目兼容性
  • 配置
  • 使用机器学习分类器向导

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新