width int32 1.51k 1.54k | height int32 2k 2k | title stringclasses 1
value | page_number int32 1 5 | total_pages int32 8 8 | canvas_label stringclasses 5
values | date stringclasses 1
value | year stringdate 1922-01-01 00:00:00 1922-01-01 00:00:00 | publisher stringclasses 1
value | place stringclasses 1
value | source_manifest stringclasses 1
value | image imagewidth (px) 1.51k 1.54k | markdown stringclasses 5
values | inference_info stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,536 | 2,000 | Highland News issue: 2031 | 1 | 8 | 1 | Saturday 02/09/1922 | 1922 | Highland News, Limited | Inverness | https://view.nls.uk/manifest/2437/3296/243732960/manifest.json | [{"bbox": [191, 146, 239, 158], "category": "Section-header"}, {"bbox": [105, 166, 324, 199], "category": "Text"}, {"bbox": [177, 208, 247, 219], "category": "Section-header"}, {"bbox": [105, 219, 324, 291], "category": "Text"}, {"bbox": [177, 300, 239, 311], "category": "Section-header"}, {"bbox": [105, 312, 324, 345]... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2026-02-23T16:07:48.418352", "prompt_mode": "layout-only"}] | |
1,536 | 2,000 | Highland News issue: 2031 | 2 | 8 | 2 | Saturday 02/09/1922 | 1922 | Highland News, Limited | Inverness | https://view.nls.uk/manifest/2437/3296/243732960/manifest.json | [{"bbox": [119, 90, 134, 107], "category": "Page-header"}, {"bbox": [474, 90, 1074, 111], "category": "Page-header"}, {"bbox": [100, 128, 313, 178], "category": "Text"}, {"bbox": [131, 185, 290, 201], "category": "Section-header"}, {"bbox": [175, 201, 240, 211], "category": "Text"}, {"bbox": [101, 212, 313, 246], "cate... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2026-02-23T16:07:48.418352", "prompt_mode": "layout-only"}] | |
1,534 | 2,000 | Highland News issue: 2031 | 3 | 8 | 3 | Saturday 02/09/1922 | 1922 | Highland News, Limited | Inverness | https://view.nls.uk/manifest/2437/3296/243732960/manifest.json | [{"bbox": [489, 85, 1090, 106], "category": "Text"}, {"bbox": [1442, 88, 1433, 106], "category": "Text"}, {"bbox": [114, 136, 296, 271], "category": "Section-header"}, {"bbox": [120, 278, 293, 361], "category": "Text"}, {"bbox": [120, 361, 293, 453], "category": "Text"}, {"bbox": [128, 447, 293, 457], "category": "Text... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2026-02-23T16:07:48.418352", "prompt_mode": "layout-only"}] | |
1,505 | 2,000 | Highland News issue: 2031 | 4 | 8 | 4 | Saturday 02/09/1922 | 1922 | Highland News, Limited | Inverness | https://view.nls.uk/manifest/2437/3296/243732960/manifest.json | [{"bbox": [145, 82, 160, 100], "category": "Page-header"}, {"bbox": [466, 81, 980, 103], "category": "Page-header"}, {"bbox": [995, 82, 1060, 101], "category": "Page-header"}, {"bbox": [224, 145, 392, 169], "category": "Section-header"}, {"bbox": [136, 197, 487, 255], "category": "Text"}, {"bbox": [123, 286, 506, 375],... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2026-02-23T16:07:48.418352", "prompt_mode": "layout-only"}] | |
1,520 | 2,000 | Highland News issue: 2031 | 5 | 8 | 5 | Saturday 02/09/1922 | 1922 | Highland News, Limited | Inverness | https://view.nls.uk/manifest/2437/3296/243732960/manifest.json | [{"bbox": [473, 77, 1073, 100], "category": "Page-header"}, {"bbox": [1379, 86, 1394, 102], "category": "Page-header"}, {"bbox": [96, 124, 311, 149], "category": "Text"}, {"bbox": [198, 149, 303, 161], "category": "Text"}, {"bbox": [114, 182, 295, 205], "category": "Section-header"}, {"bbox": [191, 205, 300, 217], "cat... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2026-02-23T16:07:48.418352", "prompt_mode": "layout-only"}] |
Document OCR using dots.ocr
This dataset contains OCR results from images in davanstrien/nls-highland-news-sample-small using DoTS.ocr, a compact 1.7B multilingual model.
Processing Details
- Source Dataset: davanstrien/nls-highland-news-sample-small
- Model: rednote-hilab/dots.ocr
- Number of Samples: 5
- Processing Time: 2.3 min
- Processing Date: 2026-02-23 16:07 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 16
- Prompt Mode: layout-only
- Max Model Length: 16,384 tokens
- Max Output Tokens: 16,384
- GPU Memory Utilization: 80.0%
Model Information
DoTS.ocr is a compact multilingual document parsing model that excels at:
- π 100+ Languages - Multilingual document support
- π Table extraction - Structured data recognition
- π Formulas - Mathematical notation preservation
- π Layout-aware - Reading order and structure preservation
- π― Compact - Only 1.7B parameters
Dataset Structure
The dataset contains all original columns plus:
markdown: The extracted text in markdown formatinference_info: JSON list tracking all OCR models applied to this dataset
Usage
from datasets import load_dataset
import json
# Load the dataset
dataset = load_dataset("{output_dataset_id}", split="train")
# Access the markdown text
for example in dataset:
print(example["markdown"])
break
# View all OCR models applied to this dataset
inference_info = json.loads(dataset[0]["inference_info"])
for info in inference_info:
print(f"Column: {info['column_name']} - Model: {info['model_id']}")
Reproduction
This dataset was generated using the uv-scripts/ocr DoTS OCR script:
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/dots-ocr.py \
davanstrien/nls-highland-news-sample-small \
<output-dataset> \
--image-column image \
--batch-size 16 \
--prompt-mode layout-only \
--max-model-len 16384 \
--max-tokens 16384 \
--gpu-memory-utilization 0.8
Generated with π€ UV Scripts
- Downloads last month
- 10