Script locator, Concept, Properties – Kofax Getting Started with Ascent Xtrata Pro User Manual

Page 206

Advertising
background image

Extraction

Ascent Xtrata Pro User's Guide

187

• Combine original confidence with distance:

The original confidence is multiplied by value indicating the distance of
the input locators alternative to the other locator’s best alternative.

8

If desired, set a maximum allowable distance in which a result must be
found.

9

Close the dialog box to save your settings.

Script Locator

The following sections describe the concept of the Script Locator and show how to
add and set up the locator.

Concept

The Script Locator is the platform for creating individual Script Locators or including
external DLLs.

For a Script Locator, sub items can be created if you want to write a locator that
returns extracted structured data. For each Script Locator, a Locate Alternatives
Event is fired in the script that can be used as an entry point to the individual locator
algorithms.

Code can be inserted for the various events. At the same time, the locator framework
(mainly for testing and assignment to fields) is available for the individual locators.
Although regions are available in the user interface, they are not evaluated in the
Script Locator automatically. If you want to restrict the Script Locator to regions, you
must do that in your code.

Properties

X

To add and configure a Script Locator

1

For an existing project, select any class in the class hierarchy.

2

Select Show Extraction Design from the Mode toolbar.

3

Create a new locator (for example, named “MyScriptLocator”) and select
“Script Locator” from the drop-down list of locator methods.

4

Double-click the locator to open the Script Locator Properties dialog box.
Simple and group fields can be created on the Field Definition tab.

Advertising