TsgcAIDocumentExtractor › Events › OnLowConfidence

OnLowConfidence Event

Fired once per field whose confidence is lower than MinConfidence.

Syntax

property OnLowConfidence: TsgcAIDocumentLowConfidenceEvent;
// TsgcAIDocumentLowConfidenceEvent = procedure(Sender: TObject; const aField: string; aConfidence: Double) of object

Default Value

—

Remarks

Raised once per field whose confidence is lower than MinConfidence, after the data has been validated. aField is the field path, for example total or lines[0].amount. Requires IncludeConfidence.

Example

procedure TForm1.oExtractorLowConfidence(Sender: TObject;
  const aField: string; aConfidence: Double);
begin
  Memo1.Lines.Add(Format('Review %s (%.2f)', [aField, aConfidence]));
end;

Back to Events