Spaces:
Paused
Paused
Download pdf2zh/parser/__init__.py from HoanggNguyen/PDFTranslator: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/HoanggNguyen/PDFTranslator/resolve/main/pdf2zh/parser/__init__.py
- Command line
-
hf download hf://spaces/HoanggNguyen/PDFTranslator/pdf2zh/parser/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/HoanggNguyen/PDFTranslator/resolve/main/pdf2zh/parser/__init__.py
504 Bytes
| """Scanned PDF translation pipeline - Stage A. | |
| This package provides parsing and analysis for scanned (image-based) PDFs | |
| using Surya for layout detection and OCR. | |
| Main exports: | |
| - PDFTypeDetector: Detect if PDF is scanned, digital, or mixed | |
| - StageAParser and phase result objects: Main parser for Stage A processing | |
| """ | |
| from pdf2zh.parser.detector import PDFTypeDetector | |
| from pdf2zh.parser.main import StageAParser | |
| __all__ = [ | |
| # Detector | |
| "PDFTypeDetector", | |
| # Parser | |
| "StageAParser", | |
| ] | |