metadata
tags:
- ocr
- document-processing
- unlimited-ocr
- baidu
- markdown
- uv-script
- generated
Document OCR using Unlimited-OCR
This dataset contains OCR results for davanstrien/bhl-impact-groundtruth produced by baidu/Unlimited-OCR with vLLM.
Processing Details
- Source Dataset: davanstrien/bhl-impact-groundtruth
- Model: baidu/Unlimited-OCR
- Number of Samples: 10
- Processing Time: 2.6 min
- Processing Date: 2026-07-29 10:44 UTC
- Output Column:
markdown - Split:
train
Output
The column holds the model's raw layout-grounded markdown: text spans tagged <|ref|>...<|/ref|> with <|det|>...<|/det|> coordinate boxes (coords 0-1000). Strip them with re.sub(r'<\|det\|>.*?<\|/det\|>', '', t) then re.sub(r'<\|/?ref\|>', '', t).
Tables are returned as HTML and equations as LaTeX.
Usage
from datasets import load_dataset
ds = load_dataset("davanstrien/pr4598-header-ocr-test", split="train")
print(ds[0]["markdown"])
Reproduction
Generated with the uv-scripts/ocr Unlimited-OCR vLLM recipe. Unlimited-OCR needs Baidu's dedicated vLLM image:
hf jobs uv run --flavor l4x1 -s HF_TOKEN \
--image vllm/vllm-openai:unlimited-ocr --python /usr/bin/python3 \
-e PYTHONPATH=/usr/local/lib/python3.12/dist-packages \
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/unlimited-ocr-vllm.py \
davanstrien/bhl-impact-groundtruth <output-dataset>
Generated with UV Scripts