Enum ExtractionPhase
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
Defines the phases of a text extraction operation.
public enum ExtractionPhase
Fields
OcrProcessing = 0OCR processing is in progress on the input content.
Extracting = 1The extraction engine is running inference to extract elements.
PostProcessing = 2Post-processing of extracted data is in progress (format validation, entity parsing, confidence scoring).
Completed = 3The extraction operation has completed.
Examples
extractor.Progress += (sender, e) =>
{
switch (e.Phase)
{
case ExtractionPhase.OcrProcessing:
Console.WriteLine($"OCR: page {e.PageIndex + 1}/{e.TotalPages}");
break;
case ExtractionPhase.Extracting:
Console.WriteLine($"Extracting: pass {e.PassIndex + 1}/{e.TotalPasses}");
break;
case ExtractionPhase.PostProcessing:
Console.WriteLine("Post-processing results...");
break;
case ExtractionPhase.Completed:
Console.WriteLine("Extraction complete.");
break;
}
};