Dataset Viewer
Auto-converted to Parquet Duplicate
pdf
unknown
doc_id
stringclasses
2 values
markdown
stringclasses
2 values
inference_info
stringclasses
1 value
"JVBERi0xLjQKJSBjcmVhdGVkIGJ5IFBpbGxvdyBQREYgZHJpdmVyCjcgMCBvYmo8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgOCA(...TRUNCATED)
doc-0
"<PAGE><|det|>image [0, 0, 999, 999]<|/det|>\n<PAGE><|det|>text [368, 411, 632, 540]<|/det|>In 2017,(...TRUNCATED)
"[{\"model_id\": \"baidu/Unlimited-OCR\", \"model_name\": \"Unlimited-OCR\", \"column_name\": \"mark(...TRUNCATED)
"JVBERi0xLjQKJSBjcmVhdGVkIGJ5IFBpbGxvdyBQREYgZHJpdmVyCjcgMCBvYmo8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgOCA(...TRUNCATED)
doc-1
"<PAGE><|det|>page_number [818, 9, 907, 35]<|/det|>E13.1\n<|det|>text [48, 234, 581, 301]<|/det|>Car(...TRUNCATED)
"[{\"model_id\": \"baidu/Unlimited-OCR\", \"model_name\": \"Unlimited-OCR\", \"column_name\": \"mark(...TRUNCATED)

Document OCR using Unlimited-OCR

This dataset contains OCR results for davanstrien/unlimited-ocr-pdf-test produced by baidu/Unlimited-OCR with vLLM.

Processing Details

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).

In multi-page runs, pages are separated by <PAGE>. Tables are returned as HTML and equations as LaTeX.

Usage

from datasets import load_dataset

ds = load_dataset("davanstrien/unlimited-ocr-multipage-smoke", 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/unlimited-ocr-pdf-test <output-dataset>

Generated with UV Scripts

Downloads last month
46