Download src/document_intelligence/chunks/__init__.py from MHamdan/SPARKNET: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/MHamdan/SPARKNET/resolve/76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document_intelligence/chunks/__init__.py
- Command line
-
hf download hf://spaces/MHamdan/SPARKNET@76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document_intelligence/chunks/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/MHamdan/SPARKNET/resolve/76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document_intelligence/chunks/__init__.py
1.18 kB
| """ | |
| Document Intelligence Chunk Models | |
| Core data models for document understanding: | |
| - BoundingBox: spatial grounding | |
| - DocumentChunk: base semantic chunk | |
| - TableChunk: table with cell structure | |
| - ChartChunk: chart with data interpretation | |
| - EvidenceRef: grounding reference | |
| - ParseResult: complete parse output | |
| - ExtractionResult: extraction with evidence | |
| """ | |
| from .models import ( | |
| # Bounding box | |
| BoundingBox, | |
| # Chunk types | |
| ChunkType, | |
| ConfidenceLevel, | |
| # Base chunks | |
| DocumentChunk, | |
| # Specialized chunks | |
| TableCell, | |
| TableChunk, | |
| ChartDataPoint, | |
| ChartChunk, | |
| FormFieldChunk, | |
| # Evidence | |
| EvidenceRef, | |
| # Parse results | |
| PageResult, | |
| ParseResult, | |
| # Extraction | |
| FieldExtraction, | |
| ExtractionResult, | |
| # Classification | |
| DocumentType, | |
| ClassificationResult, | |
| ) | |
| __all__ = [ | |
| "BoundingBox", | |
| "ChunkType", | |
| "ConfidenceLevel", | |
| "DocumentChunk", | |
| "TableCell", | |
| "TableChunk", | |
| "ChartDataPoint", | |
| "ChartChunk", | |
| "FormFieldChunk", | |
| "EvidenceRef", | |
| "PageResult", | |
| "ParseResult", | |
| "FieldExtraction", | |
| "ExtractionResult", | |
| "DocumentType", | |
| "ClassificationResult", | |
| ] | |