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

Document Understanding 活动

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

数据提取作用域

UiPath.IntelligentOCR.Activities.DataExtraction.DataExtractionScope

描述

为提取程序活动提供作用域,用于根据“分类”中定义的文档类型配置这些活动。活动输出存储在“ExtractionResult”变量中,其中包含所有自动提取的数据,并可作为输入用于“导出提取结果”活动。该活动还具有“配置提取程序”向导,可用于准确指定要从“分类”属性内定义的文档类型中提取那些字段。

项目兼容性

Windows - Legacy | Windows

配置

设计器面板

输入

  • “文档路径”- 要验证的文档的路径。该字段仅支持字符串和字符串变量。
    备注:

    该属性字段支持的文件类型包括“.png”、“.gif”、“.jpe”、“.jpg”、“.jpeg”、“.tiff”、“.tif”、“.bmp”和“.pdf”。

  • DocumentText - The text of the document itself, stored in a String variable. This value can be retrieved from the Digitize Document activity. Visit Digitize Document for more information on how to achieve this. This field supports only strings and String variables.
  • DocumentObjectModel - The Document Object Model you want to use to validate the document against. This model is stored in a Document variable and can be retrieved from the Digitize Document activity. Visit Digitize Document for more information on how to achieve this. This field supports only Document variables.
  • Taxonomy - The Taxonomy against which the document is to be processed, stored in a DocumentTaxonomy variable. This object can be obtained by using a Load Taxonomy activity. This field supports only DocumentTaxonomy variables.
  • “分类结果”- 对指定文档运行分类器活动后所得的结果,存储在“ClassificationResult”对象中。若转而指定“文档类型 ID”,则该字段为可选字段。该字段仅支持“ClassificationResult”变量。
  • DocumentTypeID - The Document Type ID, as found in the Taxonomy Manager. This field is optional if you specify a file in the ClassificationResults field. This field supports only strings and String variables.

输出

  • “提取结果”- 数据提取流程所生成的提取结果,存储在“ExtractionResult”变量中。
    备注:

    If the page range for data extraction indicates that only a part of the original file is targeted, the Data Extraction Scope generates a file in the TEMP project folder that is then passed to the extractors. The temporary file contains only the page range that extractors should receive for document processing.

属性面板

身份验证

The Authentication properties of this activity allow you to perform auto-validation via on-premises robots. Before configuring these properties, ensure you have fulfilled the prerequisites mentioned in the Configuring Authentication page. Once these steps are completed, you can then proceed to fill in the Authentication properties of the activity.

  • Runtime Credentials Asset - Use this field when you need to access Document Understanding auto-validation features while the robot is connected to a local Orchestrator, or from a different tenant. You can choose to enter a Credential Asset, for authentication purposes, in one of the following ways:
    • From the dropdown list, select the desired Credential Asset from the Orchestrator to which the UiPath® Robot is connected to.

    • 如果您在 Orchestrator 凭据资产中存储了用于访问自动验证功能的外部应用程序凭据,请手动输入 Orchestrator 凭据资产的路径。

      路径的格式应为: <OrchestratorFolderName>/<AssetName>

  • Runtime Tenant Url - Use this field, alongside the Runtime Credentials Asset field. Enter the URL of the tenant that the robot will connect to in order to execute the auto-validation. The URL should be in the following format: https://<baseURL>/<OrganizationName>/<TenantName>.

常见

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

输入

  • ApplyAutoValidation - Adjust confidence using generative extraction cross-checking. If values are auto-validated, the confidence of those values will be set to the confidence threshold. Enabling this feature has additional AI unit consumption.
  • “分类结果”- 对指定文档运行分类器活动后所得的结果,存储在“ClassificationResult”对象中。若转而指定“文档类型 ID”,则该字段为可选字段。该字段仅支持“ClassificationResult”变量。
  • DocumentObjectModel - The Document Object Model you want to use to validate the document against. This model is stored in a Document variable and can be retrieved from the Digitize Document activity. Visit Digitize Document for more information on how to achieve this. This field supports only Document variables.
  • “文档路径”- 要验证的文档的路径。该字段仅支持字符串和字符串变量。
    备注:

    该属性字段支持的文件类型包括“.png”、“.gif”、“.jpe”、“.jpg”、“.jpeg”、“.tiff”、“.tif”、“.bmp”和“.pdf”。

  • DocumentText - The text of the document itself, stored in a String variable. This value can be retrieved from the Digitize Document activity. Visit Digitize Document for more information on how to achieve this. This field supports only strings and String variables.
  • DocumentTypeID - The Document Type ID, as found in the Taxonomy Manager. This field is optional if you specify a file in the ClassificationResults field. This field supports only strings and String variables.
  • FormatValuesIfPossible - Specifies that if a value has derived parts reported, then it isn't overridden by the data extraction scope, but if it doesn't have derived parts, then the data extraction scope tries to compute it. If the option is set to False then the values are not formatted.
  • AutoValidationConfidenceThreshold - Confidence threshold for generative validation. Only field values with confidence below this threshold will be validated. If values are confirmed, the confidence of those values will be set to this threshold.
  • Taxonomy - The Taxonomy against which the document is to be processed, stored in a DocumentTaxonomy variable. This object can be obtained by using a Load Taxonomy activity. This field supports only DocumentTaxonomy variables.

其他

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

输出

  • “提取结果”- 数据提取流程所生成的提取结果,存储在“ExtractionResult”变量中。
    备注:

    If the page range for data extraction indicates that only a part of the original file is targeted, the Data Extraction Scope generates a file in the TEMP project folder that is then passed to the extractors. The temporary file contains only the page range that extractors should receive for document processing.

使用“配置提取程序向导”

The Configure Extractors Wizard can be accessed via the Data Extraction Scope and allows you to choose which extractors are applied to each document type and field.

From the body of the activity, select Configure Extractors. The wizard button becomes available after dragging at least one extractor activity into the body of the Data Extraction Scope activity. This wizard displays all the document types defined in the taxonomy and their respective fields, and enables you to choose which extractor you want to use for each.

Figure 1. Overview of the Configure Extractors wizard

“配置提取程序”向导概览

您可在该向导中展开每个文档类型,查看其字段并选择要提取的相应字段。

Figure 2. The selection of an extractor for a document type in the Configure Extractors wizard

在“配置提取程序”向导中为文档类型选择提取程序

The Framework Alias field can be used to map an extractor to one or more trainers. For instance, you can give a Machine Learning Extractor the alias R2D2 and then you can use the same alias for a Machine Learning Extractor Trainer. This creates a link between the extractor and the trainer and has training purposes for the extractor. Each extractor has a unique alias while multiple trainers can share the same alias.

You can configure the Minimum Confidence field to allow a confidence threshold between 0 and 100. The predicted value for a field is considered only if the prediction's confidence score is equal or higher than the configured Minimum confidence. If a prediction's confidence score is less than the Minimum confidence threshold, the predicted value is not stored in the output of the Data Extraction Scope activity.

提示:

You can identify an optimal confidence level by testing various documents within your workflow, recording the results in an Excel spreadsheet, for example, and then analyze what threshold value is the most accurate.

Select Get of refresh extractor capabilities, for the extractors that support this functionality, to easily map your taxonomy fields with the available extractor fields or refresh them in case the extractor fields have changed.

The check boxes next to each field in any column, if selected, cause the Data Extractor Scope to request that particular field from the extractor. If the check box is unchecked, Data Extractor Scope does not request a value for that field from the extractor.

若使用每个字段旁的文本输入,您便可将“分类”中定义的字段映射到提取程序内部分类中定义的字段(如有)。对于常规字段,请在文本输入中添加提取程序内部分类中目标字段的标识符。对于表格字段,在表格级别映射父表字段,并单独映射相应的列。

备注:

When using the Machine Learning Extractor in a setup with defined Column Fields, these can be mapped to a table field from your Taxonomy. They will be displayed under a collection called items.

向导中的列数会因作用域活动中显示的提取程序数量而异。每列的名称由每个提取程序活动的显示名称指定。

Figure 3. Multiple extractors present in the Configure Extractors wizard

“配置提取程序”向导中显示的多个提取程序

If multiple extractors are used in the activity, the order of the extractors in the scope defines their priority. For example, let's consider three extractors. Extractor 1 returns an acceptable value (which is above the Minimum Confidence level) for a particular requested field, then that field is not requested when Extractor 2 and Extractor 3 are executed. If Extractor 1 and Extractor 2 return values below the Minimum Confidence level for that particular field, or return nothing at all, the results from Extractor 3 are taken into account, if they satisfy the confidence acceptability conditions.

Document Understanding 集成

The Data Extraction Scope activity is part of the Document Understanding solutions. Visit the Document Understanding Guide for more information.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新