document_id stringclasses 1
value | page_number stringclasses 10
values | image imagewidth (px) 600 600 | text stringclasses 8
values | alto_xml stringclasses 10
values | has_image bool 1
class | has_alto bool 1
class | markdown stringclasses 10
values | inference_info stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
204486095 | 205328545 | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [204, 179, 392, 352], "category": "Picture"}, {"bbox": [185, 396, 407, 437], "category": "Title", "text": "BRITAIN"}, {"bbox": [141, 468, 452, 493], "category": "Title", "text": "AN OFFICIAL HANDBOOK"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | ||
204486095 | 205328558 | SOME BRITISH FASHIONS
Gir.H. | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [19, 24, 236, 41], "category": "Section-header", "text": "SOME BRITISH FASHIONS"}, {"bbox": [23, 114, 53, 126], "category": "Text", "text": "1590s"}, {"bbox": [0, 117, 250, 783], "category": "Picture"}, {"bbox": [233, 112, 264, 125], "category": "Text", "text": "1690s"}, {"bbox": [142, 169, 438, 868], "catego... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | |
204486095 | 205328571 | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [79, 108, 108, 120], "category": "Caption", "text": "1870s"}, {"bbox": [0, 134, 265, 870], "category": "Picture"}, {"bbox": [285, 101, 315, 112], "category": "Caption", "text": "1920s"}, {"bbox": [204, 120, 403, 770], "category": "Picture"}, {"bbox": [495, 104, 525, 115], "category": "Caption", "text": "1960s... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | ||
204486095 | 205328584 | c
1
* | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [491, 832, 547, 896], "category": "Picture"}, {"bbox": [0, 336, 31, 745], "category": "Picture"}, {"bbox": [10, 119, 16, 130], "category": "Page-footer", "text": "1"}, {"bbox": [6, 33, 15, 47], "category": "Page-footer", "text": "S"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | |
204486095 | 205328597 | BRITAIN
AN OFFICIAL HANDBOOK | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [395, 59, 541, 110], "category": "Title", "text": "BRITAIN\n\nAN OFFICIAL HANDBOOK"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | |
204486095 | 205328610 | I | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [46, 54, 191, 106], "category": "Text", "text": "BRITAIN\nBRITISH COLUMBIA"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | |
204486095 | 205328623 | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [0, 0, 588, 952], "category": "Picture"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | ||
204486095 | 205328636 | ‘Piping aboard’ ceremony on H.M.S. Lion | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [35, 171, 375, 190], "category": "Caption", "text": "HER MAJESTY THE QUEEN VISITING THE FLEET"}, {"bbox": [38, 205, 514, 864], "category": "Picture"}, {"bbox": [46, 874, 225, 885], "category": "Caption", "text": "'Piping aboard' ceremony on H.M.S. Lion"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | |
204486095 | 205328649 | BRITAIN
AN OFFICIAL HANDBOOK
PREPARED BY
THE CENTRAL OFFICE OF INFORMATION, LONDON
1 967 EDITION
London: Her Majesty’s Stationery Office: 1967 | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [119, 71, 233, 190], "category": "Picture"}, {"bbox": [114, 331, 394, 380], "category": "Title", "text": "BRITAIN"}, {"bbox": [114, 424, 441, 449], "category": "Title", "text": "AN OFFICIAL HANDBOOK"}, {"bbox": [113, 578, 215, 590], "category": "Text", "text": "PREPARED BY"}, {"bbox": [113, 597, 475, 612], "c... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] | |
204486095 | 205328662 | © Crown copyright 19^7
Printed and published by
HER MAJESTY’S STATIONERY OFFICE
To be purchased from
49 High Holborn, London w.c.i
423 Oxford Street, London w.i
13A Castle Street, Edinburgh 2
109 St. Mary Street, Cardiff
Brazennose Street, Manchester 2
50 Fairfax Street, Bristol 1
35 Smallbrook, Ringway, Birmingham 5
8... | <?xml version="1.0" encoding="UTF-8"?>
<alto xmlns="http://www.loc.gov/standards/alto/v3/alto.xsd"><Description><MeasurementUnit>pixel</MeasurementUnit><sourceImageInformation><fileName>./data/pdfs/204486095.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [105, 64, 226, 79], "category": "Page-header", "text": "© Crown copyright 1967"}, {"bbox": [105, 141, 332, 169], "category": "Text", "text": "Printed and published by\nHER MAJESTY'S STATIONERY OFFICE"}, {"bbox": [105, 182, 217, 196], "category": "Text", "text": "To be purchased from"}, {"bbox": [105, 195, 268... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-08T16:53:58.014483", "prompt_mode": "layout-all"}] |
Document OCR using dots.ocr
This dataset contains OCR results from images in NationalLibraryOfScotland/Britain-and-UK-Handbooks-Dataset using DoTS.ocr, a compact 1.7B multilingual model.
Processing Details
- Source Dataset: NationalLibraryOfScotland/Britain-and-UK-Handbooks-Dataset
- Model: rednote-hilab/dots.ocr
- Number of Samples: 10
- Processing Time: 2.2 min
- Processing Date: 2025-10-08 16:53 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 32
- Prompt Mode: layout-all
- Max Model Length: 32,768 tokens
- Max Output Tokens: 8,192
- 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 \
NationalLibraryOfScotland/Britain-and-UK-Handbooks-Dataset \
<output-dataset> \
--image-column image \
--batch-size 32 \
--prompt-mode layout-all \
--max-model-len 32768 \
--max-tokens 8192 \
--gpu-memory-utilization 0.8
Generated with 🤖 UV Scripts
- Downloads last month
- 8