Kraken recognition model for medieval manuscripts in Latin script (CATMuS Medieval, multilingual)
A Kraken recognition model trained with ketos on the CATMuS Medieval, full multilingual corpus, for
Medieval Latin, Old/Middle French, Castilian, Catalan, Italian, Middle Dutch and Old English in Latin script. The weights file is kraken_multi_18.mlmodel.
Kraken is the recognition engine behind eScriptorium, so this model drops into an existing eScriptorium workflow without conversion — its main advantage over the other models in this collection, whose CER is lower.
Model Details
- Engine: Kraken / ketos, default VGSL recognition architecture
- Input: line images; Kraken handles its own preprocessing
- Output: UTF-8 text (NFD) with abbreviation marks preserved
Performance
| Metric | Value |
|---|---|
| CER (300-line Latin sample) | 14.18 % |
| CER ignoring whitespace | 14.08 % |
| Abbreviation signs reproduced | 70.8 % (598/845) |
| CER, lines containing abbreviations | 13.93 % |
| CER, lines without abbreviations | 15.35 % |
| Median line CER (Q1–Q3) | 9.76 % (5.13–18.18 %) |
| Lines above 50 % CER | 5.7 % |
| Response rate | 99.67 % (n=299/300) |
How the numbers were measured
All models in this collection were scored on the same 300-line sample of the CATMuS Medieval
Latin test split, with the same scorer (score_predictions.py), so the figures are directly
comparable across engines.
- CER: Levenshtein distance / ground-truth characters, computed per line and aggregated character-weighted over the sample.
- Normalisation level
base: hyphen and whitespace handling only. Higher levels (punct,alnum) were deliberately not used, because they strip combining marks — and combining marks (tilde over p/d/r, combining i U+0365, U+033E, U+1DD1) are precisely the abbreviation signs this work is about. - Unicode NFD. The reference study by Romein, Rabus, Leifert & Ströbel (2025) uses NFC; NFC figures run 0.19–0.51 points higher (larger denominator) and leave the ranking unchanged.
- Abbreviation signs: of 850 abbreviation characters in the ground truth (845 on the lines a given model answered), how many were reproduced correctly. This is the metric that separates specialist models from general-purpose VLMs.
- Response rate: share of lines for which the model produced any output at all.
Transcription convention — read this before using the model
CATMuS Medieval is transcribed graphematically: abbreviation marks are preserved, not expanded, because expanding them is already an editorial interpretation. This model was trained on that convention and reproduces it.
The output therefore contains characters such as ꝑ, ⁊, combining tildes and ꝓ rather than the
expanded words. The result is a diplomatic transcription, not readable running text. For
palaeographic teaching and scholarly editing this is usually what you want; if you need readable
Latin prose, you need an expansion step downstream.
Training
- Data: CATMuS Medieval, full multilingual corpus — 175,074 training lines / 9,867 validation lines, binary-compiled dataset (
data/catmus_multi/multi_train.arrow) - Command:
ketos train -f binary -q early --lag 20 -p 0.9 -u NFD --augment -r 0.0001 \
-o models/kraken_multi data/catmus_multi/multi_train.arrow
- Hyperparameters: learning rate 1e-4, early stopping with lag 20, augmentation active, default (batch size 1) training
A later run with batch size 64 and the official CATMuS configuration scored 14.06 % on the same sample — worse than this model. The batch-1 run is the one published here.
Usage
pip install kraken
kraken -i page.png output.txt binarize segment ocr -m kraken_multi_18.mlmodel
In eScriptorium, upload the .mlmodel file as a recognition model. Kraken can also do the line
segmentation itself (blla), which makes this the only model in the collection that covers the
whole page-to-text path on its own.
How this model compares
All eight models in this collection, on the same 300 Latin lines:
| Model | CER | Abbreviation signs |
|---|---|---|
trocr-catmus-multi |
7.45 % | 79.9 % |
crnn-ctc-catmus-latin |
7.53 % | 81.6 % |
trocr-catmus-latin |
7.69 % | 79.4 % |
crnn-ctc-catmus-multi |
7.74 % | 81.5 % |
kraken-catmus-latin |
11.80 % | 75.5 % |
kraken-catmus-multi |
14.18 % | 70.8 % |
qwen3vl-catmus-multi |
17.32 % | 70.1 % |
qwen3vl-catmus-latin |
18.70 % | 66.2 % |
Two observations worth carrying into your own choice:
Multilingual training costs nothing on Latin. The four specialist models sit in a band of 7.45–7.74 % regardless of whether they saw only Latin or the full multilingual corpus. If your material is mixed, take the multilingual variant.
The gap to a general-purpose VLM is a gap in convention, not in reading. The same Qwen3-VL-4B base model without fine-tuning reaches 51.54 % CER and reproduces 0 of 850 abbreviation signs. Fine-tuning moves that to 66–70 %; prompting does not.
Intended use and limitations
Intended for transcription of medieval manuscripts in Latin script, particularly inside eScriptorium pipelines. Output follows the CATMuS graphematic convention.
Note the failure profile: roughly one line in twenty lands above 50 % CER, more than for the CRNN or TrOCR models. Errors cluster in individual collapsed lines rather than spreading evenly, which matters if you plan to correct output manually.
License
Released under CC-BY-4.0.
Trained on CATMuS Medieval, which is itself CC-BY-4.0. Whether model weights inherit a training-data licence is legally unsettled; CC-BY imposes attribution rather than share-alike, so this choice is the conservative one under either reading. Whatever you do with the model, please cite CATMuS.
Citation
@inproceedings{kiessling2019kraken,
title = {Kraken -- an Universal Text Recognizer for the Humanities},
author = {Kiessling, Benjamin},
booktitle = {Digital Humanities Conference},
year = {2019}
}
Training data:
@unpublished{clerice2024catmus,
title = {{CATMuS Medieval: A multilingual large-scale cross-century dataset in Latin script
for handwritten text recognition and beyond}},
author = {Clérice, Thibault and Pinche, Ariane and Vlachou-Efstathiou, Malamatenia and
Chagué, Alix and Camps, Jean-Baptiste and Gille-Levenson, Matthias and
Brisville-Fertin, Olivier and Boschetti, Federico and Fischer, Franz and
Gervers, Michael and Boutreux, Agnès and Manton, Avery and Gabay, Simon and
Haverals, Wouter and Kestemont, Mike and Vandyck, Caroline and Kiessling, Benjamin},
year = {2024},
note = {ICDAR 2024},
url = {https://inria.hal.science/hal-04453952}
}
Trained by Klara Oehler, DH Lab, University of Freiburg.
Provenance of the numbers
All figures on this card come from the following files on the training server
(gpu-dhlab, University of Freiburg); checksums are given so that any later divergence is traceable:
| File | MD5 | Date |
|---|---|---|
results_klassen/master_table.csv |
6bce94dd8de6e477e648e675f247bf91 |
2026-07-24 |
results_verteilung/cer_distribution.csv |
794c3f0db5630f6999a97807f0bf9a34 |
2026-07-24 |
latin/TRAINING_LOG.md |
7253b389bdd9dbce7b927c3962a0a57c |
2026-07-24 |
- Downloads last month
- 10