Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,75 +1,55 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
- name: image_height
|
| 11 |
-
dtype: int64
|
| 12 |
-
- name: full_text
|
| 13 |
-
dtype: string
|
| 14 |
-
- name: n_regions
|
| 15 |
-
dtype: int64
|
| 16 |
-
- name: n_text_regions
|
| 17 |
-
dtype: int64
|
| 18 |
-
- name: n_image_regions
|
| 19 |
-
dtype: int64
|
| 20 |
-
- name: n_table_regions
|
| 21 |
-
dtype: int64
|
| 22 |
-
- name: n_separator_regions
|
| 23 |
-
dtype: int64
|
| 24 |
-
- name: region_types
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: has_image
|
| 27 |
-
dtype: bool
|
| 28 |
-
- name: has_table
|
| 29 |
-
dtype: bool
|
| 30 |
-
- name: regions_json
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: raw_xml
|
| 33 |
-
dtype: string
|
| 34 |
-
- name: creator
|
| 35 |
-
dtype: string
|
| 36 |
-
- name: created
|
| 37 |
-
dtype: string
|
| 38 |
-
- name: last_change
|
| 39 |
-
dtype: string
|
| 40 |
-
- name: volume
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: seq_in_volume
|
| 43 |
-
dtype: int64
|
| 44 |
-
- name: source_repo
|
| 45 |
-
dtype: string
|
| 46 |
-
- name: license
|
| 47 |
-
dtype: string
|
| 48 |
-
- name: source
|
| 49 |
-
dtype: string
|
| 50 |
-
- name: ia_identifier
|
| 51 |
-
dtype: string
|
| 52 |
-
- name: ia_leaf
|
| 53 |
-
dtype: float64
|
| 54 |
-
- name: align_score
|
| 55 |
-
dtype: float64
|
| 56 |
-
- name: image_source
|
| 57 |
-
dtype: string
|
| 58 |
-
- name: image
|
| 59 |
-
dtype: image
|
| 60 |
-
- name: markdown
|
| 61 |
-
dtype: string
|
| 62 |
-
- name: inference_info
|
| 63 |
-
dtype: string
|
| 64 |
-
splits:
|
| 65 |
-
- name: train
|
| 66 |
-
num_bytes: 583851
|
| 67 |
-
num_examples: 10
|
| 68 |
-
download_size: 578677
|
| 69 |
-
dataset_size: 583851
|
| 70 |
-
configs:
|
| 71 |
-
- config_name: default
|
| 72 |
-
data_files:
|
| 73 |
-
- split: train
|
| 74 |
-
path: data/train-*
|
| 75 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- ocr
|
| 4 |
+
- document-processing
|
| 5 |
+
- unlimited-ocr
|
| 6 |
+
- baidu
|
| 7 |
+
- markdown
|
| 8 |
+
- uv-script
|
| 9 |
+
- generated
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
# Document OCR using Unlimited-OCR
|
| 13 |
+
|
| 14 |
+
This dataset contains OCR results for [davanstrien/bhl-impact-groundtruth](https://huggingface.co/datasets/davanstrien/bhl-impact-groundtruth)
|
| 15 |
+
produced by [baidu/Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR) with vLLM.
|
| 16 |
+
|
| 17 |
+
## Processing Details
|
| 18 |
+
|
| 19 |
+
- **Source Dataset**: [davanstrien/bhl-impact-groundtruth](https://huggingface.co/datasets/davanstrien/bhl-impact-groundtruth)
|
| 20 |
+
- **Model**: [baidu/Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR)
|
| 21 |
+
- **Number of Samples**: 10
|
| 22 |
+
- **Processing Time**: 2.6 min
|
| 23 |
+
- **Processing Date**: 2026-07-29 10:44 UTC
|
| 24 |
+
- **Output Column**: `markdown`
|
| 25 |
+
- **Split**: `train`
|
| 26 |
+
|
| 27 |
+
## Output
|
| 28 |
+
|
| 29 |
+
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)`.
|
| 30 |
+
|
| 31 |
+
Tables are returned as HTML and equations as LaTeX.
|
| 32 |
+
|
| 33 |
+
## Usage
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from datasets import load_dataset
|
| 37 |
+
|
| 38 |
+
ds = load_dataset("davanstrien/pr4598-header-ocr-test", split="train")
|
| 39 |
+
print(ds[0]["markdown"])
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Reproduction
|
| 43 |
+
|
| 44 |
+
Generated with the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) Unlimited-OCR
|
| 45 |
+
vLLM recipe. Unlimited-OCR needs Baidu's dedicated vLLM image:
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
hf jobs uv run --flavor l4x1 -s HF_TOKEN \
|
| 49 |
+
--image vllm/vllm-openai:unlimited-ocr --python /usr/bin/python3 \
|
| 50 |
+
-e PYTHONPATH=/usr/local/lib/python3.12/dist-packages \
|
| 51 |
+
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/unlimited-ocr-vllm.py \
|
| 52 |
+
davanstrien/bhl-impact-groundtruth <output-dataset>
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Generated with [UV Scripts](https://huggingface.co/uv-scripts)
|