Add 1000 files (ocr-tech/tests/test_audit_limbu_book_missed_line_review_coverage.py ...)
d82db76 verified Download ocr-tech-mps-integration/src/ocrtech/errors.py from prosperious/ocr-projects-archive: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/prosperious/ocr-projects-archive/resolve/main/ocr-tech-mps-integration/src/ocrtech/errors.py
- Command line
-
hf download hf://prosperious/ocr-projects-archive/ocr-tech-mps-integration/src/ocrtech/errors.py
-
curl -L -o errors.py https://huggingface.co/prosperious/ocr-projects-archive/resolve/main/ocr-tech-mps-integration/src/ocrtech/errors.py
1 kB
| """Project-specific exceptions.""" | |
| from __future__ import annotations | |
| class OcrTechError(Exception): | |
| """Base class for all expected ocrtech failures.""" | |
| class DataValidationError(OcrTechError): | |
| """Raised when a dataset row, manifest, or schema is invalid.""" | |
| class EngineUnavailableError(OcrTechError): | |
| """Raised when an optional OCR engine is requested but unavailable.""" | |
| class ParseError(OcrTechError): | |
| """Raised when document parsing cannot complete.""" | |
| class BenchmarkError(OcrTechError): | |
| """Raised when a benchmark configuration is invalid.""" | |
| class ValidationError(OcrTechError): | |
| """Raised when a SOTA validation configuration is invalid.""" | |
| class PreflightError(OcrTechError): | |
| """Raised when a claim preflight configuration is invalid.""" | |
| class ClaimReviewError(OcrTechError): | |
| """Raised when a claim review bundle is invalid.""" | |
| class RemoteAuditError(OcrTechError): | |
| """Raised when a remote host audit cannot run or is misconfigured.""" | |