document_id stringclasses 10
values | page_number 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 | markdown stringclasses 10
values | 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 | regulations for emissions such as carbon dioxide, hydrocarbons, oxides of nitrogen and particulate matter. Three EC Directives agreed during the UK Presidency, and which will come into force from January 2000, will further improve emissions from passenger cars and light commercial vehicles. Their main elements are:
- ... | [{"model_id": "zai-org/GLM-OCR", "model_name": "GLM-OCR", "column_name": "markdown", "timestamp": "2026-02-05T14:42:32.935699", "task": "ocr", "temperature": 0.01, "top_p": 1e-05, "repetition_penalty": 1.1, "max_tokens": 16384}] | |
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 | 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 developments. The Government is increasing its u... | [{"model_id": "zai-org/GLM-OCR", "model_name": "GLM-OCR", "column_name": "markdown", "timestamp": "2026-02-05T14:42:32.935699", "task": "ocr", "temperature": 0.01, "top_p": 1e-05, "repetition_penalty": 1.1, "max_tokens": 16384}] | |
189742219 | 189881032 | "Peterhead ■\nChapelcross\n▲ Dinorwig \\\nA Ffestiniog\n• Trawsfynydd\nRatcliffe-on-Soar\nRhei(...TRUNCATED) | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED) | true | true | "Electricity\n\nOrkney Islands\nShetland Islands\n\nOperated by SSEB from January 1990\n\nDounreay\n(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED) | |
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 | "Britain, as in all countries before the development of medical science, by high death rates and, in(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...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 | "Abbeys and Priories: p. 1, English Heritage Photo Library; p. 2, Crown Copyright, Historic Scotland(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...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 | "6 Social Welfare\n\nThe British social welfare system comprises the National Health Service, the pe(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...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 | "Acknowledgment is made for photographs to: General Council of British Shipping for National Sea Tra(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...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 | "The National Film Theatre, on the south bank of the Thames, in London, shows films of outstanding h(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...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 | "The British Standards Institution (BSI) is a voluntary non-profit-making body incorporated by Royal(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...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 | "significant contribution to the economy, directly providing over 180,000 jobs. In 1993, 10.9 millio(...TRUNCATED) | "[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED) |
Document OCR using GLM-OCR
This dataset contains OCR results from images in NationalLibraryOfScotland/Britain-and-UK-Handbooks-Dataset using GLM-OCR, a compact 0.9B OCR model achieving SOTA performance.
Processing Details
- Source Dataset: NationalLibraryOfScotland/Britain-and-UK-Handbooks-Dataset
- Model: zai-org/GLM-OCR
- Task: text recognition
- Number of Samples: 10
- Processing Time: 4.1 min
- Processing Date: 2026-02-05 14:42 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 16
- Max Model Length: 8,192 tokens
- Max Output Tokens: 16,384
- Temperature: 0.01
- Top P: 1e-05
- GPU Memory Utilization: 80.0%
Model Information
GLM-OCR is a compact, high-performance OCR model:
- 0.9B parameters
- 94.62% on OmniDocBench V1.5
- CogViT visual encoder + GLM-0.5B language decoder
- Multi-Token Prediction (MTP) loss for efficiency
- Multilingual: zh, en, fr, es, ru, de, ja, ko
- MIT licensed
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
Reproduction
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
NationalLibraryOfScotland/Britain-and-UK-Handbooks-Dataset \
<output-dataset> \
--image-column image \
--batch-size 16 \
--task ocr
Generated with UV Scripts
- Downloads last month
- 16