Download scripts/parsebench_docparse.py from Kedhareswer/docparse: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/Kedhareswer/docparse/resolve/main/scripts/parsebench_docparse.py
- Command line
-
hf download hf://Kedhareswer/docparse/scripts/parsebench_docparse.py
-
curl -L -o parsebench_docparse.py https://huggingface.co/Kedhareswer/docparse/resolve/main/scripts/parsebench_docparse.py
522 Bytes
| """Run LlamaIndex ParseBench with the docparse pipeline registered. | |
| python scripts/parsebench_docparse.py download [--test] | |
| python scripts/parsebench_docparse.py run docparse [--test] [--group table] | |
| """ | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parents[1])) | |
| import docparse.parsebench # noqa: E402,F401 (registers the provider, pipeline and layout adapter) | |
| from parse_bench.cli import main # noqa: E402 | |
| if __name__ == "__main__": | |
| sys.exit(main()) | |