Download src/document/layout/__init__.py from MHamdan/SPARKNET: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/MHamdan/SPARKNET/resolve/76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document/layout/__init__.py
- Command line
-
hf download hf://spaces/MHamdan/SPARKNET@76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document/layout/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/MHamdan/SPARKNET/resolve/76c3b0a8cd44eb930c2ad41fc0e95acdb3cd2bab/src/document/layout/__init__.py
512 Bytes
| """ | |
| Layout Detection Module | |
| Detects document structure: text blocks, tables, figures, headings, etc. | |
| Supports multiple backends: rule-based, PaddleStructure, and LayoutLM. | |
| """ | |
| from .base import LayoutDetector, LayoutConfig, LayoutResult | |
| from .detector import ( | |
| RuleBasedLayoutDetector, | |
| get_layout_detector, | |
| create_layout_detector, | |
| ) | |
| __all__ = [ | |
| "LayoutDetector", | |
| "LayoutConfig", | |
| "LayoutResult", | |
| "RuleBasedLayoutDetector", | |
| "get_layout_detector", | |
| "create_layout_detector", | |
| ] | |