document_id stringclasses 50
values | page_number stringlengths 9 9 | image imagewidth (px) 600 600 | text stringlengths 0 5.08k | alto_xml stringlengths 595 133k | has_image bool 1
class | has_alto bool 1
class | layout stringlengths 49 13.9k | inference_info stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
204486115 | 204788144 | ENVIRONMENTAL PROTECTION
Air Pollutants: UK Emissions of Selected Gases from All Sources
Million tonnes
Source: National Environmental Technology Centre
regulations for emissions such as carbon
dioxide, hydrocarbons, oxides of nitrogen and
particulate matter. Three EC Directives
agreed during the UK Presidency, and whi... | <?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/204486115.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [402, 11, 557, 22], "category": "Page-header"}, {"bbox": [23, 60, 514, 78], "category": "Section-header"}, {"bbox": [23, 90, 93, 103], "category": "Text"}, {"bbox": [21, 109, 567, 411], "category": "Picture"}, {"bbox": [27, 426, 214, 438], "category": "Text"}, {"bbox": [24, 480, 281, 604], "category": "Text"}... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "layout", "timestamp": "2025-10-09T13:45:12.864064", "prompt_mode": "layout-only"}] | |
204486117 | 204805723 | 26: SCIENCE, ENGINEERING AND TECHNOLOGY
Activities such as these are important in
assuring continued interest in SET among
young people making educational and career
choices. They also help to enhance the
public’s ability to relate to scientific issues in
general and to make informed judgments
about scientific developm... | <?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/204486117.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [329, 13, 555, 26], "category": "Page-header"}, {"bbox": [22, 56, 278, 275], "category": "Text"}, {"bbox": [23, 303, 72, 317], "category": "Section-header"}, {"bbox": [22, 326, 276, 575], "category": "Text"}, {"bbox": [22, 602, 239, 621], "category": "Section-header"}, {"bbox": [19, 626, 270, 863], "category"... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "layout", "timestamp": "2025-10-09T13:45:12.864064", "prompt_mode": "layout-only"}] | |
189742219 | 189881032 | Peterhead ■
Chapelcross
▲ Dinorwig \
A Ffestiniog
• Trawsfynydd
Ratcliffe-on-Soar
Rheidol v
Sizewell A •
Sizewell BO
Tilbury
W. Thurrock | • Bradwell
Pembi
irthaw
Didcot
Oldbury
Dungeness Ba^
Dungeness A
;ley R. A Hinkley R. B
Electricity
Shetland
Islands
Orkney
Islands
Dounreay
Fasnakyle
★
20 40 60 80 100120 km
J I l ... | <?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/189742219.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><processingDateTime>Wed Nov ... | true | true | [{"bbox": [25, 20, 112, 39], "category": "Section-header"}, {"bbox": [0, 49, 588, 924], "category": "Picture"}, {"bbox": [405, 0, 576, 178], "category": "Picture"}, {"bbox": [420, 24, 461, 50], "category": "Text"}, {"bbox": [504, 24, 551, 50], "category": "Text"}] | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "layout", "timestamp": "2025-10-09T13:45:12.864064", "prompt_mode": "layout-only"}] | |
204486089 | 204586555 | "8\nBRITAIN: AN OFFICIAL HANDBOOK\nBritain, as in all countries before the development of medical sc(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [62, 31, 71, 44], \"category\": \"Page-header\"}, {\"bbox\": [198, 35, 423, 49], \"cate(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) | |
204486116 | 204791459 | "Abbeys and Priories: p. 1, English Heritage Photo Library; p. 2, Crown Copyright, Historic\nScotlan(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [26, 64, 523, 101], \"category\": \"Text\"}, {\"bbox\": [26, 97, 527, 134], \"category\(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) | |
189742213 | 189840602 | "6\nSocial Welfare\nThe British social welfare system comprises the National Health Service, the\npe(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [63, 23, 485, 73], \"category\": \"Section-header\"}, {\"bbox\": [121, 171, 560, 300], (...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) | |
204486104 | 204702331 | "Acknowledgment is made for photographs to: General Council\nof British Shipping for National Sea Tr(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [154, 59, 462, 234], \"category\": \"Text\"}, {\"bbox\": [164, 765, 472, 842], \"catego(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) | |
204486092 | 204614323 | "242\nBRITAIN: AN OFFICIAL HANDBOOK\nSociety of Film and\nTelevision Arts\nAssistance to\nBritish Fi(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [17, 57, 38, 68], \"category\": \"Page-header\"}, {\"bbox\": [131, 54, 349, 65], \"cate(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) | |
204486095 | 205332263 | "INDUSTRY\n261\nThe British Standards Institution (BSI) is a voluntary non-profit-making\nbody incor(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [134, 34, 197, 44], \"category\": \"Page-header\"}, {\"bbox\": [537, 34, 557, 46], \"ca(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) | |
204486111 | 204752329 | "BRITAIN 1995: AN OFFICIAL HANDBOOK\nsignificant contribution to the economy,\ndirectly providing ov(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "[{\"bbox\": [45, 23, 226, 35], \"category\": \"Page-header\"}, {\"bbox\": [44, 65, 288, 124], \"cat(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"layout\", \"timestamp\": \"2025-10-0(...TRUNCATED) |
End of preview. Expand in Data Studio
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: 2,000
- Processing Time: 12.5 min
- Processing Date: 2025-10-09 13:45 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 512
- Prompt Mode: layout-only
- Max Model Length: 8,192 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 512 \
--prompt-mode layout-only \
--max-model-len 8192 \
--max-tokens 8192 \
--gpu-memory-utilization 0.8
Generated with 🤖 UV Scripts
- Downloads last month
- 21