| """ | |
| Document Intelligence Extraction Module | |
| Schema-driven field extraction with validation: | |
| - ExtractionSchema: Define fields to extract | |
| - FieldExtractor: Extract values with evidence | |
| - ExtractionValidator: Validate results | |
| """ | |
| from .schema import ( | |
| FieldType, | |
| FieldSpec, | |
| ExtractionSchema, | |
| # Pre-built schemas | |
| create_invoice_schema, | |
| create_receipt_schema, | |
| create_contract_schema, | |
| ) | |
| from .extractor import ( | |
| ExtractionConfig, | |
| FieldExtractor, | |
| ) | |
| from .validator import ( | |
| ValidationIssue, | |
| ValidationResult, | |
| ExtractionValidator, | |
| CrossFieldValidator, | |
| ) | |
| __all__ = [ | |
| # Schema | |
| "FieldType", | |
| "FieldSpec", | |
| "ExtractionSchema", | |
| "create_invoice_schema", | |
| "create_receipt_schema", | |
| "create_contract_schema", | |
| # Extraction | |
| "ExtractionConfig", | |
| "FieldExtractor", | |
| # Validation | |
| "ValidationIssue", | |
| "ValidationResult", | |
| "ExtractionValidator", | |
| "CrossFieldValidator", | |
| ] | |