Consilia Print: kraken text recognition model for 16th century legal prints
A kraken recognition model for the roman and italic type of the Venetian legal prints of the 1570s, fine-tuned from McCATMuS on 167,699 lines of Baldus de Ubaldis, Consilia (Venice 1575, five volumes) with the final text of the Consilia edition (https://github.com/dekm-tud/coding-consilia) based on its editorial conventions: long s as s, the ampersand as "et", ligatures resolved, ę kept, abbreviations marked with tildes or special signs expanded silently ("nõ" > "non", "ſnĩa" > "sententia"), abbreviations with a period in citations kept as printed ("ff. de uer. ob. l."), a marginal number as a prefix ("2 "), the structuring symbol in the text as "†". Visible hyphens at the line end as "¬".
Model was trained on kraken's polygon lines and works with layout model mschonhardt/consilia-baldus-venice1575-kraken-seg.
Developed in the project Embedding the Past (LOEWE-Exploration, TU Darmstadt, AdWL|Mainz), funded by HMWK Hessen, PI Prof. Dr. Michael Schonhardt, for the Consilia portal.
Files
| file | what |
|---|---|
consilia_rec.mlmodel | the model in kraken's CoreML container (kraken … ocr -m consilia_rec.mlmodel) |
consilia_rec.safetensors | the same weights in kraken 7's safetensors format |
training.log | the ketos log (validation accuracy per epoch) |
test.log | the ketos test report on the test split (metrics, confusions) |
Use
kraken -i page.jpg page.xml -x segment -bl -i consilia_seg.mlmodel ocr -m consilia_rec.mlmodel # page image -> PAGE XML
kraken -i page.jpg page.xml -x -f page ocr -m consilia_rec.mlmodel # existing PageXML layout -> text
The model is a baselines model: it expects lines with a baseline and polygon (kraken's segmenter, PageXML or ALTO from eScriptorium or Transkribus).
Training
- Base: McCATMuS (
McCATMuS_nfd_nofix_V1, a generic model for manuscripts and prints), codec extended by the edition's characters (--resize union), text in NFD. - Data: the train pages of the dataset, lines with a non-empty text, a baseline and either a human
decision or at least two of the three readings agreeing with the edition text (167,699 lines); 13,611
validation lines from 100 other pages; 9,941 test lines from 71 pages never used in training or
selection. Lines compiled with
ketos compile -f page(polygon extraction, no legacy polygons). ketos train -f binary --resize union -u NFD -B 32 -r 0.0005 --schedule cosine --cos-max 16 -N 16 --min-epochs 8 -q early --lag 4 --min-delta 0.0005 --augment --pad 16 --precision 16-mixed: batch 32, learning rate 5e-4 with a cosine schedule over 16 epochs, augmentation on, 16 px padding, mixed precision; early stop after four evaluations without improvement. Best epoch: 18 of 23 (epochs counted from 0; the stop came after four epochs without improvement).- Hardware and time: one NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB) at TU Darmstadt, shared with the two layout trainings of the project; 6 to 8 minutes per epoch, 2.8 hours in all, 26 October 2026.
- Environmental impact, estimated: the card (600 W) ran 2.9 hours for the three trainings together, 1.74 kWh × 0.38 kg CO2e per kWh (German grid average) = about 660 g CO2e, of which about 310 g fall to this model by its share of the run time.
Evaluation
ketos test on the held-out test split (71 pages, 9,941 lines, text in NFD, kraken's own metric):
| metric | value |
|---|---|
| character accuracy | 99.47 % (607,691 characters, 3,218 errors: 490 insertions, 1,855 deletions, 873 substitutions) |
| character error rate | 0.53 % |
| word accuracy | 98.09 % (word error rate 1.91 %) |
Validation during training: best character accuracy 99.52 % (epoch 18).
Most frequent errors (test.log): a dropped hyphen sign at the line end (274 times) or one added (91),
a dropped space (189), and single dropped letters inside words (n, i, t, a, e, s, o, u, m, r: 80 to 130
each); deletions outnumber insertions by almost four to one. Case errors are negligible (case-insensitive
accuracy equals the case-sensitive one). By script: Latin letters 99.61 %, punctuation and digits
99.35 %, combining marks 97.2 % correct.
Licence and citation
Model weights: CC BY 4.0. Schonhardt, Michael: Consilia Print: kraken text recognition model for 16th century legal prints, v2. Embedding the Past (LOEWE-Exploration, TU Darmstadt, AdWL|Mainz), 2026. https://huggingface.co/mschonhardt/consilia-baldus-venice1575-kraken-rec
Related: the dataset mschonhardt/consilia-baldus-venice1575-pagexml; the layout model
mschonhardt/consilia-baldus-venice1575-kraken-seg; the v1 model and its line dataset on Zenodo; McCATMuS,
DOI 10.5281/zenodo.13788177; the Consilia portal https://dekm-tud.github.io/coding-consilia/ and its
repository https://github.com/dekm-tud/coding-consilia.