papie lemmatization · tagging · any language

Old and Middle French

Lemma and POS (Pie tagset) for Old French (OF3C, the corpus of the École des chartes [Camps et al. 2021] ) and Middle French (the mf-corpus, 1300–1532), with the recipe used for Greek: copy decoder, byte input, NFKC, Ranger, capitalisation noise, rare-lemma upsampling.

How to read the tables. Ours = models trained with PaPie 1.x (a single joint lemma-and-POS network, 8.9 M parameters). Theirs = models published by the École des chartes team, trained with PaPie < 1.0.0 (Pie): one network per task (lemma and POS), 21.2 M parameters for Old French and 18.0 M for Middle French together. Models are only compared when they were run on the same test file with the same scoring script. Figures from papers or model pages, measured on other test sets, are listed separately and are not comparable.

Data. Old French: the split built by the corpus tooling (1.16 M training tokens) and its NCA test sample (34 136 tokens, out-of-domain). Middle French: the three annotated sub-corpora pooled (about 116 k tokens), cut into sentences at strong punctuation, with whole texts assigned to train (96.6 k tokens), dev (6.7 k) and test (12.0 k): the sub-corpora hold different excerpts of the same texts, so a split by file would leak. Both corpora share their conventions: 95 % of the Middle French lemma tokens occur in the Old French lemma vocabulary and 99.8 % of its POS tags are in the Old French tagset. Our Middle French model starts from our Old French model (vocabulary-aware transfer, lr 3e-4).

1. Shared test files: ours against theirs

One scoring script for all rows: the same tokens, sentences cut at 35 tokens, lemma and POS compared as exact matches after NFKC normalisation on both sides.

Old French, NCA test sample (34 136 tokens). Neither side trained on it (out-of-domain).

ModelWhoseLemmaPOS
Old French, old variantours93.3794.44
Old French, release 1.0.0 (April 2023)theirs93.6594.82
Middle French, middle variantours91.5594.99
Middle French, Zenodo 2026theirs87.8194.22

On Old French the two are close; theirs is ahead by 0.3 points of lemma and 0.4 of POS, which is within the noise of one run on this test size (about ±0.15 points of standard error, before any correlation between tokens).

Middle French test split (12 012 tokens). Held out from our training. Their model was trained on the whole mf-corpus, so it has seen these texts: the comparison favours them.

ModelWhoseLemmaPOS
Middle French, middle variant (fine-tuned from old)ours92.2594.13
Middle French, Zenodo 2026theirs87.4894.93
Old French, old variant, no adaptationours88.0689.87
Old French, release 1.0.0, no adaptationtheirs86.3890.93

Ours is 4.8 points ahead on lemma even though their model has seen these texts; theirs is 0.8 ahead on POS. Their lemma score on texts from its own training corpus is lower than we would expect (and than their published figure below). A difference in lemma conventions or text normalisation between their evaluation data and this file is a possible cause, which we did not investigate.

2. Ours only

Our own models on our own test files (scored by the training framework, which compares NFKC-normalised labels; within 0.1 point of the table above):

ModelTest setLemmaPOS
Old FrenchOld French (NCA)93.4494.52
Old French, no adaptationMiddle French88.2190.21
Middle French from scratchMiddle French88.5792.98
Middle French from the Old French modelMiddle French92.3694.45
the same, tested on Old FrenchOld French (NCA)91.6895.05

Starting Middle French from the Old French model beats training it from scratch by 3.8 points of lemma accuracy and 1.5 of POS; adapting costs 1.8 points of lemma on Old French. All figures are single runs on small test sets.

3. Published figures, not comparable

Measured by their authors on test sets we do not have, with models and corpus versions that differ from the ones above.

SourceTest setLemmaPOS
[Camps et al. 2021] / [Duval et al. 2022] , Old French modelin-domain split of OF3C, 73 507 units97.4797.39
[Duval et al. 2022] , Old French model, evaluated before the latest texts were addedNCA sample, 35 888 units91.1194.74
Middle French model, Zenodo (Dugaz 2026)not stated on the record91.6797.43

The 91.11 % figure is not the model measured in section 1: it is an earlier version on its own evaluation set (35 888 units against 34 136 tokens here), which is why the 93.65 % obtained here on our file should not be set against it. In-domain figures are higher than out-of-domain ones for every model, because the test texts come from the same corpus as the training texts.

Reproducing

Their models are public: the Old French lemma and POS models are in the deucalion-model-af GitHub release 1.0.0, and the Middle French ones on Zenodo (record 20522515; the file checksums match). They were run with Pie on the same sentences as ours.

Our models are published as biblissima-textes/pie-thunder-french, variants old and middle, CC-BY 4.0 (Publishing models).