GetRawTokenOffset (Method) - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

Description

Returns the position of the given solution from within the entire set of raw tokens. This is useful when evaluating tokens that come before or after the one used for the solution.

If the given solution contains multiple tokens, GetRawTokenOffset returns the position of the first token within the solution.

Applicable Events

AnyApp Pre-Application, AnyApp Post-Algorithm, AnyApp Post-Application

Syntax

object.GetRawTokenOffset

Parameters

Object is a reference to the Solution object. For more information, see Solution Object.

GetRawTokenOffset is the command.

Example

For I = MyAlg.SolutionCount to 1 Step -1

Offset = MyAlg.Solution(I).GetRawTokenOffset

If nOffset > 1000 then

MyAlg.RemoveSolution(I)

End if

Next