document_id stringclasses 2
values | page_number int32 1 6 | file_identifier stringclasses 10
values | image imagewidth (px) 600 600 | text stringclasses 10
values | alto_xml stringclasses 10
values | has_image bool 1
class | has_alto bool 1
class | document_metadata stringclasses 2
values | has_metadata bool 1
class | exam_type stringclasses 2
values | exam_year stringdate 1918-01-01 00:00:00 1920-01-01 00:00:00 | exam_reference stringclasses 1
value | markdown stringclasses 10
values | inference_info stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
143486138 | 1 | 143116563 | Circular No. 20.
Scottish Education Department;
Letters should be addressed—
“ The Secretary,
Whitehall,
London, S.W.l.”
SCOTTISH EDUCATION DEPARTMENT,
WHITEHALL,
LONDON, S.W.l.
loth January 1920.
SIR,
I AM to remind you that it is the duty of every Education
Authority to prepare and submit for the approval of the
Depa... | <?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/c_125883965/i_143486138/168499299.23.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><... | true | true | Scottish Education Department - 1920 - GEB.16 | true | Scottish Education Department | 1920 | GEB.16 | [{"bbox": [366, 101, 478, 116], "category": "Page-header", "text": "Circular No. 20."}, {"bbox": [131, 174, 259, 185], "category": "Text", "text": "Letters should be addressed—"}, {"bbox": [126, 187, 263, 237], "category": "Text", "text": "\"The Secretary,\nScottish Education Department,\nWhitehall,\nLondon, S.W.I.\""}... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-07T14:23:40.618068", "prompt_mode": "layout-all"}] | |
143486138 | 2 | 143116575 | 2
receive, as soon as may be, and if possible not later than
March 3Jst, a formal statement showing clearly —
(a) The number of children (if any) residing beyond a radius
of three miles from the nearest school in the various
parts of your Authority’s area, and the provision
which is being made, or has been made, for th... | <?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/c_125883965/i_143486138/168499299.23.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><... | true | true | Scottish Education Department - 1920 - GEB.16 | true | Scottish Education Department | 1920 | GEB.16 | [{"bbox": [278, 87, 287, 99], "category": "Page-header", "text": "2"}, {"bbox": [102, 115, 463, 144], "category": "Text", "text": "receive, as soon as may be, and if possible not later than\nMarch 31st, a formal statement showing clearly—"}, {"bbox": [121, 153, 465, 223], "category": "List-item", "text": "(a) The numbe... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-07T14:23:40.618068", "prompt_mode": "layout-all"}] | |
143486138 | 3 | 143116587 | 3
Authority of his district for such financial assistance as he may
require towards maintenance and towards payment of fees, and
it will be necessary, if the scheme does not already provide
for the 'granting of such assistance, to amend it accordingly
forthwith.
I have the honour to be,
Sir,
Your obedient Servant,
To t... | <?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/c_125883965/i_143486138/168499299.23.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><... | true | true | Scottish Education Department - 1920 - GEB.16 | true | Scottish Education Department | 1920 | GEB.16 | [{"bbox": [281, 84, 290, 97], "category": "Page-header", "text": "3"}, {"bbox": [105, 109, 471, 183], "category": "Text", "text": "Authority of his district for such financial assistance as he may require towards maintenance and towards payment of fees, and it will be necessary, if the scheme does not already provide f... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-07T14:23:40.618068", "prompt_mode": "layout-all"}] | |
143486138 | 4 | 143116599 | <?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/c_125883965/i_143486138/168499299.23.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><... | true | true | Scottish Education Department - 1920 - GEB.16 | true | Scottish Education Department | 1920 | GEB.16 | [{"bbox": [109, 678, 470, 814], "category": "Text", "text": "THE\n\nOFFICE\n\nOF\n\nTHE\n\nCHAIRMAN\n\nOF THE\n\nSTATE\n\nDEPARTMENT\n\nOF\n\nNURSES\n\nAND\n\nNURSING\n\nASSISTANTS\n\nIN\n\nTHE\n\nUNIVERSITY\n\nHOSPITALS\n\nOF\n\nNEW YORK\n\nAND\n\nSOUTHERN\n\nMICHIGAN\n\nAND\n\nILLINOIS\n\nAND\n\nOTHER\n\nOFFICES\n\nW... | [{"model_id": "rednote-hilab/dots.ocr", "column_name": "markdown", "timestamp": "2025-10-07T14:23:40.618068", "prompt_mode": "layout-all"}] | ||
143486136 | 1 | 143116443 | "0!PMi\nCrOfS -23,\nCircular No. 3.\nSCOTTISH EDUCATION DEPARTMENT,\n8th April, 1919.\nEDUCATION (SC(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | Education (Scotland) Act, 1918 - 1919 - GEB.16 | true | Education (Scotland) Act, 1918 | 1918 | GEB.16 | "[{\"bbox\": [72, 70, 224, 151], \"category\": \"Text\", \"text\": \"Letters should be addressed—\(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"markdown\", \"timestamp\": \"2025-10(...TRUNCATED) | |
143486136 | 2 | 143116455 | "2\nuntil 16th May, on and after which day the new Authorities\nwill assume responsibility in accord(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | Education (Scotland) Act, 1918 - 1919 - GEB.16 | true | Education (Scotland) Act, 1918 | 1918 | GEB.16 | "[{\"bbox\": [274, 61, 283, 73], \"category\": \"Page-header\", \"text\": \"2\"}, {\"bbox\": [94, 88(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"markdown\", \"timestamp\": \"2025-10(...TRUNCATED) | |
143486136 | 3 | 143116467 | "3\nAPPENDIX I.\nOrder made by the Scottish Education Department\non 20th February, 1919, fixing App(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | Education (Scotland) Act, 1918 - 1919 - GEB.16 | true | Education (Scotland) Act, 1918 | 1918 | GEB.16 | "[{\"bbox\": [291, 74, 300, 87], \"category\": \"Page-header\", \"text\": \"3\"}, {\"bbox\": [240, 1(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"markdown\", \"timestamp\": \"2025-10(...TRUNCATED) | |
143486136 | 4 | 143116479 | "Section 32\nSection 33\nThe First Sche-\ndule.\nSCHEDULE—continued.\nSubsection (1) so\nfar as re(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | Education (Scotland) Act, 1918 - 1919 - GEB.16 | true | Education (Scotland) Act, 1918 | 1918 | GEB.16 | "[{\"bbox\": [283, 86, 291, 98], \"category\": \"Page-header\", \"text\": \"4\"}, {\"bbox\": [224, 1(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"markdown\", \"timestamp\": \"2025-10(...TRUNCATED) | |
143486136 | 5 | 143116491 | "5\nAPPENDIX II.\nOrder made by the Scottish Education Department\non 18th March, 1919, fixing Appoi(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | Education (Scotland) Act, 1918 - 1919 - GEB.16 | true | Education (Scotland) Act, 1918 | 1918 | GEB.16 | "[{\"bbox\": [283, 71, 292, 84], \"category\": \"Page-header\", \"text\": \"5\"}, {\"bbox\": [234, 1(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"markdown\", \"timestamp\": \"2025-10(...TRUNCATED) | |
143486136 | 6 | 143116503 | "SCHEDULE—continued.\nSection 9\nSection 10\nSection 11\nSection 12\nSection 13\nSection 20\nSecti(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | Education (Scotland) Act, 1918 - 1919 - GEB.16 | true | Education (Scotland) Act, 1918 | 1918 | GEB.16 | "[{\"bbox\": [305, 81, 313, 93], \"category\": \"Page-header\", \"text\": \"6\"}, {\"bbox\": [238, 1(...TRUNCATED) | "[{\"model_id\": \"rednote-hilab/dots.ocr\", \"column_name\": \"markdown\", \"timestamp\": \"2025-10(...TRUNCATED) |
Document OCR using dots.ocr
This dataset contains OCR results from images in NationalLibraryOfScotland/Scottish-School-Exam-Papers using DoTS.ocr, a compact 1.7B multilingual model.
Processing Details
- Source Dataset: NationalLibraryOfScotland/Scottish-School-Exam-Papers
- Model: rednote-hilab/dots.ocr
- Number of Samples: 10
- Processing Time: 1.6 min
- Processing Date: 2025-10-07 14:23 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 16
- Prompt Mode: layout-all
- 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
- ⚡ Fast inference - 2-3x faster than native HF with vLLM
- 🎯 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/Scottish-School-Exam-Papers \
<output-dataset> \
--image-column image \
--batch-size 16 \
--prompt-mode layout-all \
--max-model-len 8192 \
--max-tokens 8192 \
--gpu-memory-utilization 0.8
Performance
- Processing Speed: ~0.1 images/second
- GPU Configuration: vLLM with 80% GPU memory utilization
Generated with 🤖 UV Scripts
- Downloads last month
- 13