2023:Labeled Value (Value Extractor)

From Grooper Wiki
Revision as of 11:46, 30 January 2023 by Rpatton (talk | contribs)
WIP

This article is a work-in-progress or created as a placeholder for testing purposes. This article is subject to change and/or expansion. It may be incomplete, inaccurate, or stop abruptly.

This tag will be removed upon draft completion.

A Labeled Value is an extractor type that can be used when configuring several data extraction tools such as a Value Reader or Data Type. It is designed to return text segments that have a spatial relationship to a defined label.


About

A Labeled Value is configured using two extractors: the Label Extractor and the Value Extractor. When the Label Extractor is set, Grooper uses spatial context to determine what value to return (for more on spatial context, see the Data Context wiki article).

The Labeled Value extracts information similarly to collating a Key-Value Pair. Unlike a Key-Value Pair, the extractor is self-contained in one object. There is no need to set one object as a "Key" and another object as a "Value". Instead, both the "Label" and the "Value" can be set on one object.


How To

Configuring by Object Type

Configuring on a Value Reader

  1. In your Node Tree, create or select a Value Reader.
    • Visit the Value Reader Wiki Page for instructions on how to create a Value Reader.
  2. Select the "Value Reader" tab.
  3. Click the drop down list next to Extractor and select Labeled Value.

Configuring on a Data Type

  1. In your Node Tree, create or select a Data Type.
    • Visit the Data Type Wiki Page for instructions on how to create a Data Type.
  2. Select the "Data Type" tab.
  3. Click the drop down list next to Local Extractor and select Labeled Value.

Once you select Labeled Value as your extractor, you will need to set both your label and your value to be extracted.

Configuring the Label Extractor

  1. Once Labeled Value is set as the extractor on the object you are configuring, click on the "Tester" tab.
  2. Click the drop down next to the Value Extractor property and select an extractor to use.
    • For the purposes of this example, we are going to use a List Match extractor. However, any extractor can be used to capture the desired label.



Configuring the Value Extractor

  1. Once Labeled Value is set as the extractor on the object you are configuring, click on the "Tester" tab.
  2. Click the drop down next to the Value Extractor property and an extractor to use.
    • For the purposes of this example, we are going to use a Reference to another extractor that has been previously configured. However, any extractor can be used to capture the desired value.


See Also