beautypg.com

Kofax Transformation Modules Invoice Pack 1.0 User Manual

Page 18

background image

Contents

18

Kofax Transformation Modules Invoice Pack - Configuration Guide

SL_SetRegExlocator above. The results found by this locator are used by the
FL_PONumber_West and FL_PONumber_North locators mentioned below.

ƒ

FL_PONumber_West – This format locator takes the results of the
FL_PONumber_RegExp locator above. It contains keywords which exist to
the west of the possible results.

ƒ

FL_PONumber_North – This format locator takes the results of the
FL_PONumber_RegExp locator above. It contains keywords which exist to
the north of the possible results.

ƒ

SE_PONumber_Combined – This evaluator combines the results of the two
format locators above. The reason there are two evaluators with identical
keywords is to provide the ability to search for the same keyword in different
locations and at different distances. Within a single locator, it is not possible
to have the same keyword twice at different distances.

ƒ

SL_ResetRegex – This script locator provides the final part of the enhanced
logic for the PONumber field. After the locators above have been completed,
this reverts the changes made by the SL_SetRegEx locator. The dynamic
regular expression is disabled, and the generic regular expression is once
again enabled in the FL_PONumber_RegExp locator. The script locator also
checks to see which type of regular expression was used to find possible
results on the document. If the generic expression was used, the alternatives
from the FL_PONumber_RegExp locator are all set to 0% confidence, whereas
the confidences remain as they are when using a dynamic regular expression.
This is due to the following logic:

1. There is a regular expression based format locator which runs on the

page. This uses either a generic regular expression to find possible
values, or where available uses a specific regular expression which
matches the format of the PONumber expected for the customer.

2. If a dynamic (specific) regular expression is available, the first regular

expression in the locator list (which is intended to hold the dynamic
expression) is updated. The settings of the format locator are then
changed so that the generic expression is disabled and the dynamic
expression is enabled. If no dynamic expression is available, then the
generic expression is enabled.

3. There are additional format locators (mentioned above) which run

keywords on the SL_ResetRegEx results in order to identify the correct
item.

4. If a specific regular expression was used, we trust it implicitly and thus

allow its results to be found as part of the “first of” process used by the
SE_PONumber evaluator described below. If the expression used was
generic, we only want results from the keyword based locators to be