UiPath Documentation
document-understanding
2021.10
false
Document Understanding 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

创建和配置字段

字段无法重命名,因此在命名字段之前请仔细考虑。但是,如果您稍后决定不使用某些字段来训练 ML 模型,则可以将其删除,也可以始终使用“编辑字段”窗口中的“隐藏”复选框将其隐藏。

备注:

最多可以创建 300 个字段。

列字段

发票单据上的行项目“说明”或“单价”就是列字段的示例。

新建列字段

  1. 在页面顶部的表格部分单击 文档图像,以添加新的“列”字段。系统将显示“创建列字段”窗口。
  2. 在“输入唯一字段名称”字段中填写字段的唯一名称。该字段不接受大写字母。只能包含小写字母、数字、下划线 _ 和短划线 -
  3. 单击“创建”。系统将显示“编辑字段”窗口。
  4. 从“内容类型”下拉列表中,选择内容类型。
  5. 从“评分”下拉列表中,选择在运行模型预测评估时用来确定准确性的度量。
  6. 单击“热键”字段,然后按键盘上的某个键以自动填充该字段。
  7. 在“颜色”字段中,填写所需字段颜色的十六进制代码。
  8. 如果要将此字段用作表格中明细项目或行之间的分隔符,请选中“拆分项目”复选框。出现此字段的任何行都会被视为表格中的新明细项目或行。
    这通常用于发票明细项目中的“明细金额”字段。
  9. 如果您不希望此字段成为导出数据集的一部分,请选中“隐藏”复选框。
  10. 单击“保存”以保存您的设置。

编辑列字段

单击“编辑”字段文档图像按钮。可以在下表中找到列字段的可用选项。

选项 描述

内容类型

字段的内容类型:

  • string: appropriate for company names or addresses, as well as payment terms, or for any other field where the RPA developer prefers to build the parsing or formatting logic manually, in the RPA workflow.
  • number: appropriate for amounts or quantities, with intelligent parsing of the decimal/thousands separators.
  • date: the model parses, formats and unifies the output in a yyyy-mm-dd format.
  • **电话号码**:适用于电话号码。设置格式会删除字母和括号,并将空格替换为短划线。
  • id-no: appropriate for alphanumeric codes, numbers of IDs, it is similar to the string content type, but includes cleaning of any characters coming before a colon :. If the id number you need to extract might contain colon : characters, please use string as content type instead to avoid data loss.

快捷方式

字段的快捷键。允许使用一个或两个按键。

颜色

字段的颜色,以十六进制格式表示。如果值无效,则生成一个新值。

计分

用于在运行模型预测评估时确定准确度的方法。只能为字符串内容类型配置此选项。所有其他内容类型均使用精确匹配评分策略。选项:

  • exact match: a prediction is only deemed to be correct (score of 1) if it exactly matches the true value. If it differs by even a single character, then it is deemed to be incorrect (score of 0).
  • levenshtein: a prediction is deemed to be partially correct according to the Levenshtein distance between the prediction and the true value. If a 10-letter value is predicted correctly, except for the last 2 characters, then the score of that prediction will be 0.8.

拆分项目

如果要将此字段用作表格中行项目或行之间的分隔符,请选中此复选框。出现此字段的任何行都会被视为表格中的新行项目或行。这通常用于发票行项目中的“行金额”字段。

隐藏

如果您不希望此字段成为导出的数据集的一部分,请选中此复选框。

删除列字段

要删除列字段,请执行以下步骤:

  1. 单击与要删除的列字段对应的“编辑字段文档图像 按钮。

  2. 单击“删除”按钮。

  3. 输入字段的确切名称。

  4. 单击“确定”

  5. 列字段及其关联的带标签数据将被删除。

常规字段

这些字段在给定文档中仅出现一次。发票单据上的行项目“发票编号”或“总金额”就是列字段的示例。

新建常规字段

  1. Click 文档图像 on the right pane in the Regular Fields section. The Create Regular Field window is displayed.
  2. 在“输入唯一字段名称”字段中填写字段的唯一名称。该字段不接受大写字母。只能包含小写字母、数字、下划线 _ 和短划线 -
  3. 单击“创建”。系统将显示“编辑字段”窗口。
  4. 从“内容类型”下拉列表中选择内容类型。
  5. 如果模型预测给定页面上某个字段的多个实例,请从“后处理”下拉列表中选择后处理机制。
  6. 单击“热键”字段,然后按键盘上的某个键以自动填充该字段。
  7. 在“颜色”字段中,填写所需字段颜色的十六进制代码
  8. 从“多页”下拉列表中,选择数据检索策略。如果字段出现在多页文档的几个不同页面上,可以使用此选项。此选项定义模型如何决定返回哪个页面。
  9. 从“评分”下拉列表中,选择在运行模型预测评估时用来确定准确性的度量。
  10. 如果要检查的字段可能跨越多个文本行,例如地址或说明,请选中“多行”复选框。如果未选择此选项,则仅返回第一行。
  11. 如果您不希望此字段成为导出数据集的一部分,请选中“隐藏”复选框。
  12. 单击“保存”以保存您的设置。

编辑常规字段

单击“编辑”字段文档图像按钮。可以在下表中找到常规字段的可用选项。

选项 描述

内容类型

字段的内容类型:

  • string: appropriate for company names or addresses, as well as payment terms, or for any other field where the RPA developer prefers to build the parsing or formatting logic manually, in the RPA workflow.
  • number: appropriate for amounts or quantities, with intelligent parsing of the decimal/thousands separators.
  • date: the model parses, formats and unifies the output in a yyyy-mm-dd format.
  • **电话号码**:适用于电话号码。设置格式会删除字母和括号,并将空格替换为短划线。
  • id-no: appropriate for alphanumeric codes, numbers of IDs, it is similar to the string content type, but includes cleaning of any characters coming before a colon :. If the id number you need to extract might contain colon : characters, please use string as content type instead to avoid data loss.

后处理

后处理机制。如果模型在给定页面上预测了某个字段的多个实例,则模型将返回:

  • highest_confidence: the value with the highest confidence.
  • first_span: the first value.
  • largest_value: the largest numeric value. This is only displayed for number content type and is appropriate for Total Amount fields.
  • longest_value: the value consisting of the largest number of characters.

快捷方式

字段的快捷键。允许使用一个或两个按键。

颜色

字段的颜色,以十六进制格式表示。如果值无效,则生成一个新值。

多页

字段出现在多页文档的不同页面上时的数据返回策略。

  • highest_confidence - the default choice for string,phone, and number content types.
  • first_occurrence - the default choice for id-no and date content types.
  • 最后一次出现

    -longest_string

  • 最短字符串
  • highest_num_value - only displayed for number content type.
  • lowest_num_value - only displayed for number content type.

计分

用于在运行模型预测评估时确定准确度的方法。只能为字符串内容类型配置此选项。所有其他内容类型均使用精确匹配评分策略。选项:

  • exact match: a prediction is only deemed to be correct (score of 1) if it exactly matches the true value. If it differs by even a single character, then it is deemed to be incorrect (score of 0).
  • levenshtein: a prediction is deemed to be partially correct according to the Levenshtein distance between the prediction and the true value. If a 10-letter value is predicted correctly, except for the last 2 characters, then the score of that prediction will be 0.8.

多行

对于可能跨多个文本行的字段(地址或说明),请选中此复选框。否则,仅返回第一行。

隐藏

如果您不希望此字段成为导出的数据集的一部分,请选中此复选框。

删除常规字段

要删除常规字段,请执行以下步骤:

  1. 单击与要删除的常规字段对应的“编辑字段文档图像按钮。

  2. 单击“删除”按钮。

  3. 输入字段的确切名称。

  4. 单击“确定”

  5. 常规字段及其关联的带标签数据将被删除。

分类字段

整体上引用文档的数据点。例如,收据的“费用类型”(伙食费、住宿费、航空费、交通费)或发票的“币种”(美元、欧元和日元)就是分类字段的示例。

新建分类字段

  1. Click 文档图像 on the right pane in the Classification Fields section. The Create Classification Field window is displayed.
  2. 在“输入唯一字段名称”字段中填写字段的唯一名称。该字段不接受大写字母。只能包含小写字母、数字、下划线 _ 和短划线 -
  3. 单击“创建”。系统将显示“编辑字段”窗口。
  4. 在文本区域中,填写类列表,然后以逗号分隔列表的形式键入名称。
  5. 单击“保存”以保存您的设置。

编辑分类字段

Click the Edit field 文档图像 button. Define a list of possible values. Commas must separate values. An optional description of the value may be included after colon : (option 1 : description 1).

删除分类字段

要删除分类字段,请执行以下步骤:

  1. Click the Edit field文档图像 button corresponding to the classification field you want to delete.

  2. 单击“删除”按钮。

  3. 输入字段的确切名称。

  4. 单击“确定”

  5. 分类字段及其关联的带标签数据将被删除。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新