Key-Value Pair (Collation Provider): Difference between revisions

From Grooper Wiki
No edit summary
No edit summary
Line 35: Line 35:
[[File:Key-Value Pair 02.png]]
[[File:Key-Value Pair 02.png]]
|}
|}
== How To ==
=== Create A Key-Value Pair Extractor ===
<tabs style="margin:20px">
<tab name="Create a Data Type" style="margin:20px">
=== Create a Data Type ===
</tab>
<tab name="Create the Key Extractor" style="margin:20px">
=== Create the Key Extractor ===
</tab>
<tab name="Create the Value Extractor" style="margin:20px">
=== Create the Value Extractor ===
</tab>
<tab name="Set the Collation Provider" style="margin:20px">
=== Set the Collation Provider ===
</tab>
<tab name="Set the Layout Setting" style="margin:20px">
=== Configure the Layout Settings ===
</tab>
</tabs>

Revision as of 12:37, 26 August 2020

Key-Value Pair is a Collation Provider for Data Type extractors. It uses the layout relationship between a key and a value on a document to return a result.

Key-Value Pair collation is one of the most commonly used Collation Providers. It provides an excellent way to extract data when a value exists next to a label on a document, whether next to it horizontally, vertically, or even in a "right-to-left & top-to-bottom" text flow.


About

The Key-Value Pair Collation Provider utilizes the spatial relationship between two related extractor results to return a single result.

For structured documents, it is common for a piece of data to be identified by some sort of label, usually to the left of it, or above it.

In these images, the field label, highlighted in blue, identifies the field's value, highlighted in yellow. We use this kind of labeling relationship to identify data on documents all the time. The Key-Value Pair Collation Provider is perfectly suited to use these labeling relationships.

Key-Value Pair collated Data Types (often just referred to as Key-Value Pairs) collate the results of two extractors, a "key extractor" and a "value extractor". The "key extractor" will locate the label (or whatever context is being used to return the data you want). The "value extractor" will return all possible values matching the data you want to return.

Once collated, the Key-Value Pair will return the closest value to the key, according to the assigned Layout Settings (The top image uses a Horizontal Layout because the labels are aligned next to each other horizontally. The bottom uses a Vertical Layout).

Key-Value Pair collation also has applications in unstructured document processing. Unstructured documents convey information in paragraphs and sentences more than they do with structured fields. Because of this, the value may not be horizontally or vertically aligned, but somewhere before or after a labeling key in the text flow.

For these situations, the Flow Layout can be used, which will use the relationship between the key and the value in the text data's right-to-left and top-to bottom text flow.

A Key-Value Pair could be build to extract the driver name (highlighted here in yellow), using the phrase "driver's name" in the text flow before it.

How To

Create A Key-Value Pair Extractor

Create a Data Type

Create the Key Extractor

Create the Value Extractor

Set the Collation Provider

Configure the Layout Settings