Datasets:
|
Download code/README.md from microsoft/XL-DocBench: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/datasets/microsoft/XL-DocBench/resolve/main/code/README.md
- Command line
-
hf download hf://datasets/microsoft/XL-DocBench/code/README.md
-
curl -L -o README.md https://huggingface.co/datasets/microsoft/XL-DocBench/resolve/main/code/README.md
1.01 kB
| # XL-DocBench Code | |
| All runnable code is kept in this directory. The release smoke test and | |
| evaluator require only Python's standard library. | |
| ## One-command smoke test | |
| Run from the release root: | |
| ```bash | |
| uv run --no-project python code/quickstart.py | |
| ``` | |
| This validates the data files, IDs, document references, evidence metadata, | |
| per-question score coverage, manifest counts, and a five-question evaluation | |
| fixture. | |
| ## Files | |
| - `quickstart.py`: zero-dependency release validation and evaluation smoke test. | |
| - `evaluate.py`: primary Accuracy, Token F1, and ANLS evaluator. | |
| - `examples/load_data.py`: minimal standard-library data loader. | |
| - `examples/gold_sample.jsonl`: five-record evaluation fixture. | |
| - `examples/predictions_sample.jsonl`: perfect predictions for that fixture. | |
| ## Examples | |
| ```bash | |
| uv run --no-project python code/examples/load_data.py | |
| uv run --no-project python code/evaluate.py \ | |
| --gold-files code/examples/gold_sample.jsonl \ | |
| --predictions code/examples/predictions_sample.jsonl | |
| ``` | |