Dataset Viewer
Auto-converted to Parquet Duplicate
document_id
stringclasses
10 values
page_number
stringclasses
10 values
image
imagewidth (px)
600
600
text
stringclasses
9 values
alto_xml
stringclasses
10 values
has_image
bool
1 class
has_alto
bool
2 classes
markdown
stringclasses
10 values
inference_info
stringclasses
1 value
74972250
74974873
REPORT ON THE CALCUTTA MEDICAL INSTITUTIONS FOR THE YEAR 1878. No. 413B G. FROM THE SURGEON-GENERAL FOR BENGAL, To THE SECRETARY TO THE GOVERNMENT OF BENGAL. JUDICIAL AND POLITICAL DEPARTMENTS. Dated Calcutta, the 3rd April 1879. SIR, I HAVE the honor to submit the report of the following medical institutions of Calcut...
<?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_75481908/i_74972250/74974873.6.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><proc...
true
true
REPORT OF THE CALCUTTA MEDICAL INSTITUTIONS FOR THE YEAR 1878. No. 413BG. FROM THE SURGEON-GENERAL FOR BENGAL, TO THE SECRETARY TO THE GOVERNMENT OF BENGAL, JUDICIAL AND POLITICAL DEPARTMENTS. Dated Calcutta, the 3rd April 1879. SIR, I have the honor to submit the report of the following medical institutions of ...
[{"model_id": "zai-org/GLM-OCR", "model_name": "GLM-OCR", "column_name": "markdown", "timestamp": "2026-02-12T14:22:21.920199", "task": "ocr", "temperature": 0.01, "top_p": 1e-05, "repetition_penalty": 1.1, "max_tokens": 8192}]
91022596
91024490
24 HONORE. One Vaccinator under the Civil Surgeon, Assistant Surgeon H. WAKEFIELD. YEARS. 1864 1865 Total Vaccinated. 547 222 Compared with the preceding year. Increase. .... .... Decrease. .... 325 Success- fully Vaccinated. 475 177 Per-centage of Success. 86.8 79.7 The number vaccinated during the past year, shows a ...
<?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_75481908/i_91022596/91024490.6.pdf</fileName></sourceImageInformation><OCRProcessing ID="IdOcr"><ocrProcessingStep><proc...
true
true
HONORE. One Vaccinator under the Civil Surgeon, Assistant Surgeon H. WAKEFIELD. YEARS. Total Vaccinated. Compared with the preceding year. Successfully Vaccinated. Per-centage of Success. Increase. Decrease. 1864 547 ... ... 475 86·8 1865 222 ... 325 177 79·7 The number vaccinated during the past year, shows a decre...
[{"model_id": "zai-org/GLM-OCR", "model_name": "GLM-OCR", "column_name": "markdown", "timestamp": "2026-02-12T14:22:21.920199", "task": "ocr", "temperature": 0.01, "top_p": 1e-05, "repetition_penalty": 1.1, "max_tokens": 8192}]
74990311
74991224
"Climate of the\nstation.\nVentilation\nand drainage\nf o r t h e m e n ' s\nhuts.\nSAUGOR CIRCLE.\n(...TRUNCATED)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"Jubbulpore in a bullock bandy (about four or five weeks after he was attacked) in a very weak, emac(...TRUNCATED)
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
91029431
91032113
"13\nin the Bombay Presidency during the year 1907-08—continued.\nVACCINATION.\nSuccessful.\nOne a(...TRUNCATED)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"in the Bombay Presidency during the year 1907-08—continued.\n\nVaccination.\nSuccessful.\nOil and(...TRUNCATED)
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
75033546
75033705
true
false
K
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
75194196
75478039
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"DATE OF OBSERVATION\nItem. 4\n5\n6\n7\n8\n9\n\nDays of Disease\n\nOrganisms in Blood\n\nRespiration(...TRUNCATED)
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
75006569
75007688
"NORTHERN DIVISION OF THE ARMY.\n95\nThe sub-soil water-level in the lines is, at all seasons of the(...TRUNCATED)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"The sub-soil water-level in the lines is, at all seasons of the year, so far from the surface as to(...TRUNCATED)
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
75809782
75903720
"TABLE IX.\nShowing main results of the working of Provincial Cattle Farms during the year 1926-27.\(...TRUNCATED)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"TABLE IX. Showing main results of the variety of Provincial Cattle Farms during the year 1928-27.\n(...TRUNCATED)
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
91534624
91534874
"(RESOLUTION.)\nJUDICIAL DEPARTMENT.\nMedical.\nFort William, the 7th January 1870.\nTHIS report was(...TRUNCATED)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"RESOLUTION. JUDICIAL DEPARTMENT. Medical.\n\nFort William, the 7th January 1870.\n\nThis report was(...TRUNCATED)
"[{\"model_id\": \"zai-org/GLM-OCR\", \"model_name\": \"GLM-OCR\", \"column_name\": \"markdown\", \"(...TRUNCATED)
91022598
91028977
"24\nin primary vaccinations, and is spread more or less over several of\nthe native states of this (...TRUNCATED)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<alto xmlns=\"http://www.loc.gov/standards/alto/v3/alto(...TRUNCATED)
true
true
"in primary vaccinations, and is spread more or less over several of the native states of this circl(...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/medical-history-of-british-india using GLM-OCR, a compact 0.9B OCR model achieving SOTA performance.

Processing Details

Configuration

  • Image Column: image
  • Output Column: markdown
  • Dataset Split: train
  • Batch Size: 16
  • Max Model Length: 8,192 tokens
  • Max Output Tokens: 8,192
  • 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 format
  • inference_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/medical-history-of-british-india \
    <output-dataset> \
    --image-column image \
    --batch-size 16 \
    --task ocr

Generated with UV Scripts

Downloads last month
8