Dataset Viewer
Auto-converted to Parquet Duplicate
document_id
stringlengths
9
9
page_number
int32
1
20
file_identifier
stringlengths
9
9
image
imagewidth (px)
600
600
text
stringlengths
0
3.05k
alto_xml
stringlengths
714
77.5k
has_image
bool
1 class
has_alto
bool
1 class
document_metadata
stringlengths
39
138
has_metadata
bool
1 class
exam_type
stringclasses
18 values
exam_year
stringdate
1897-01-01 00:00:00
1938-01-01 00:00:00
exam_reference
stringclasses
2 values
markdown
stringlengths
39
53.8k
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
## Cirular No. 20. ## Letters should be addressed— "The Secretary, Scottish Education Department, Whitehall, London, S.W.I." ## SCOTTISH EDUCATION DEPARTMENT, WHITEHALL, LONDON, S.W.I. 13th January 1920. ## Sir, I AM to remind you that it is the duty of every Education Authority to prepare and submit for the...
[{"model_id": "tencent/HunyuanOCR", "column_name": "markdown", "timestamp": "2025-11-25T16:15:31.434565", "prompt_mode": "parse-document", "prompt_language": "en"}]
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
2 receive, as soon as may be, and if possible not later than March 31st, 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 t...
[{"model_id": "tencent/HunyuanOCR", "column_name": "markdown", "timestamp": "2025-11-25T16:15:31.434565", "prompt_mode": "parse-document", "prompt_language": "en"}]
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
## 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...
[{"model_id": "tencent/HunyuanOCR", "column_name": "markdown", "timestamp": "2025-11-25T16:15:31.434565", "prompt_mode": "parse-document", "prompt_language": "en"}]
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
The text in the picture is too small to read.
[{"model_id": "tencent/HunyuanOCR", "column_name": "markdown", "timestamp": "2025-11-25T16:15:31.434565", "prompt_mode": "parse-document", "prompt_language": "en"}]
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
"## Circular No. 3.\n## SCOTTISH EDUCATION DEPARTMENT,\n## 8th April, 1919.\n\n# EDUCATION (SCOTLAND(...TRUNCATED)
"[{\"model_id\": \"tencent/HunyuanOCR\", \"column_name\": \"markdown\", \"timestamp\": \"2025-11-25T(...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
"2\n\nuntil 16th May, on and after which day the new Authorities will assume responsibility in accor(...TRUNCATED)
"[{\"model_id\": \"tencent/HunyuanOCR\", \"column_name\": \"markdown\", \"timestamp\": \"2025-11-25T(...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
"# APPENDIX I.\n\nOrder made by the Scottish Education Department on 20th February, 1919, fixing App(...TRUNCATED)
"[{\"model_id\": \"tencent/HunyuanOCR\", \"column_name\": \"markdown\", \"timestamp\": \"2025-11-25T(...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
"## 4 SCHEDULE—continued.\n\nSection 32 Provisions as to education au thorities, school management(...TRUNCATED)
"[{\"model_id\": \"tencent/HunyuanOCR\", \"column_name\": \"markdown\", \"timestamp\": \"2025-11-25T(...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
"# APPENDIX II.\n\nOrder made by the Scottish Education Department on 18th March, 1919, fixing Appoi(...TRUNCATED)
"[{\"model_id\": \"tencent/HunyuanOCR\", \"column_name\": \"markdown\", \"timestamp\": \"2025-11-25T(...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
"# SCHEDULE—continued.\n\nSection 9 Contributions to maintenance of certain schools and institutio(...TRUNCATED)
"[{\"model_id\": \"tencent/HunyuanOCR\", \"column_name\": \"markdown\", \"timestamp\": \"2025-11-25T(...TRUNCATED)
End of preview. Expand in Data Studio

Document OCR using HunyuanOCR

This dataset contains OCR results from images in NationalLibraryOfScotland/Scottish-School-Exam-Papers using HunyuanOCR, a lightweight 1B VLM from Tencent.

Processing Details

Configuration

  • Image Column: image
  • Output Column: markdown
  • Dataset Split: train
  • Batch Size: 1
  • Prompt Mode: parse-document
  • Prompt Language: English
  • Max Model Length: 16,384 tokens
  • Max Output Tokens: 16,384
  • GPU Memory Utilization: 80.0%

Model Information

HunyuanOCR is a lightweight 1B VLM that excels at:

  • 📝 Document Parsing - Full markdown extraction with reading order
  • 📊 Table Extraction - HTML format tables
  • 📐 Formula Recognition - LaTeX format formulas
  • 📈 Chart Parsing - Mermaid/Markdown format
  • 📍 Text Spotting - Detection with coordinates
  • 🔍 Information Extraction - Key-value, fields, subtitles
  • 🌐 Translation - Multilingual photo translation

Prompt Modes Available

  • parse-document - Full document parsing (default)
  • parse-formula - LaTeX formula extraction
  • parse-table - HTML table extraction
  • parse-chart - Chart/flowchart parsing
  • spot - Text detection with coordinates
  • extract-key - Extract specific key value
  • extract-fields - Extract multiple fields as JSON
  • extract-subtitles - Subtitle extraction
  • translate - Document translation

Dataset Structure

The dataset contains all original columns plus:

  • markdown: The extracted text in markdown format
  • inference_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 HunyuanOCR script:

uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/hunyuan-ocr.py \
    NationalLibraryOfScotland/Scottish-School-Exam-Papers \
    <output-dataset> \
    --image-column image \
    --batch-size 1 \
    --prompt-mode parse-document \
    --max-model-len 16384 \
    --max-tokens 16384 \
    --gpu-memory-utilization 0.8

Generated with UV Scripts

Downloads last month
6