API reference
Signatures and member documentation on these pages are generated from the code
(sphinx.ext.autodoc). Everything listed here is importable from doc2mark, except where a
page names another module (doc2mark.ocr, doc2mark.ocr.schema, doc2mark.judge). The
user guide explains how the pieces fit together; start with Quickstart.
- UnifiedDocumentLoader
- Convenience functions
- Results, enums and exceptions
- OCR
- Structured OCR Schema
- The verbatim / interpretation boundary
OCRPage— the top-level resultRawExtraction— verbatim page contentTable— a transcribed tableKeyValue— a label/value pairMetric— a typed numeric assertion- The nested interpretation models
Interpretation— the model’s reading- A complete filled
OCRPage(receipt) - Helpers
- OCR cache
- Chunking
- Judge