Property StopWhenAllFieldsFound
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
StopWhenAllFieldsFound
Gets or sets whether a windowed extraction stops as soon as every field the schema can complete has a value, instead of reading every remaining window.
public bool StopWhenAllFieldsFound { get; set; }
Property Value
- bool
The default value is
true.
Remarks
Only affects Segment; a single-pass extraction has nothing to stop early. Windows are read in document order and a single-value field keeps the first window that answered it, so once every field has an answer the remaining windows cannot change the result and reading them is pure cost. For a long document whose fields sit near the front, the usual shape of forms, invoices and contracts, this is the difference between one inference pass and dozens.
A schema containing a list field never stops early, at any depth: a later window can always contribute another item.
Set to false to read every window regardless. The extracted values do not change,
but every window gets a say, so a single-value field that two windows read differently is
detected and marked down for review. Stopping early cannot report a disagreement it never
read.