File size: 1,802 Bytes
c36567b
b867153
 
 
 
 
 
 
 
c36567b
b867153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
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](https://huggingface.co/datasets/davanstrien/bhl-impact-groundtruth)
produced by [baidu/Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR) with vLLM.

## Processing Details

- **Source Dataset**: [davanstrien/bhl-impact-groundtruth](https://huggingface.co/datasets/davanstrien/bhl-impact-groundtruth)
- **Model**: [baidu/Unlimited-OCR](https://huggingface.co/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

```python
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](https://huggingface.co/datasets/uv-scripts/ocr) Unlimited-OCR
vLLM recipe. Unlimited-OCR needs Baidu's dedicated vLLM image:

```bash
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](https://huggingface.co/uv-scripts)