Repository navigation
Releases
Historic French model v7 for Spacy 3.8
What Changed
- Lemmas without ligatures or the long s, so that they can be searched as typed: cœur, coeur → coeur; œuvres → oeuvre; eſt → être. Until v6 the lemmas kept œ (cœur).
- Early printings: copies of the training sentences are added as early editions print them (the long s from 1500 to 1800, œ and æ), with plain lemmas, so the model lemmatizes such printings.
- Encoder: ModernCamemBERT-base instead of CamemBERTa-v2-base, 4% faster on a GPU and 25% faster with flash-attention. The model uses PyTorch's SDPA attention, or flash-attention when it is installed.
- Tokenizer: chef-d'œuvre, chefs-d'œuvre, main-d'œuvre and crève-cœur are kept whole, as in the training data.
Compared with v6
Both models scored on the same test data, whose lemmas are now written without ligatures:
| Test set | v6 POS / TAG / Lemma | v7 POS / TAG / Lemma |
|---|---|---|
| Hand-corrected gold (99 sentences) | 98.02% / 97.57% / 97.89% | 98.21% / 97.86% / 98.49% |
| Second gold set (100 sentences) | 97.63% / 96.66% / 97.45% | 97.47% / 96.67% / 97.72% |
| Held-out test set (4,999 sentences) | 98.50% / 97.85% / 97.31% | 98.62% / 98.00% / 97.66% |
| FreEM, 16th-20th c. (174,000 tokens) | 97.66% / – / 97.54% | 97.66% / – / 98.07% |
| FreEM, SETAF (16th-century pamphlets) | 94.84% / – / 93.62% | 94.87% / – / 94.01% |
| Sequoia (modern French) | 95.39% / – / 93.95% | 95.22% / – / 94.01% |
FreEM is a new test: the hand-corrected early modern French of FreEM LPM, with its tags and lemmas mapped to the model's conventions; TAG is not scored.
On the held-out test set rewritten as early editions print it, 89.9% of the rewritten words get the right lemma (v6: 51.7%). On 3,000 Frantext sentences with œ and æ words, 89% of these words get a lemma without the ligature (v6: none); most of the others are Latin words and names (gloriæ, Scævola) and a few compounds (chef-d'œuvre).
Performance by Century
| Period | POS | TAG | Lemma |
|---|---|---|---|
| 1500-1600 | 97.73% | 97.09% | 95.32% |
| 1600-1700 | 98.66% | 97.78% | 97.54% |
| 1700-1800 | 98.95% | 98.36% | 98.42% |
| 1800-1900 | 98.96% | 98.47% | 98.63% |
| 1900-2000 | 98.83% | 98.36% | 98.52% |
Requirements: spaCy >=3.8.5,<3.9.0, spacy-transformers 1.3 and transformers 4.48 or 4.49. Optionally, on a GPU, flash-attn 2.7.4 (install it only where the model runs on the GPU).
Historic English model v2 for Spacy 3.8
What Changed
- Encoder: ModernBERT-base instead of RoBERTa-large. The model is as accurate (see below), about 1.6 times as fast on a GPU, 1.9 times with flash-attention, and less than half the size.
- cannot: the tokenizer splits it into can + not, which RoBERTa saw as a single word, so v1 gave both tokens the same tag. A rule now tags them can AUX/MD and not PART/RB.
- Attention: the model now uses PyTorch's SDPA attention, or flash-attention when it is installed, instead of the slower eager attention.
Compared with v1
| Test set | v1 POS / TAG / Lemma | v2 POS / TAG / Lemma |
|---|---|---|
| Gold set 1 (100 sentences) | 98.48% / 98.31% / 97.07% | 98.42% / 98.42% / 97.10% |
| Gold set 2 (100 sentences) | 98.26% / 98.12% / 97.25% | 98.01% / 97.76% / 97.28% |
| Challenge set (39 sentences) | 96.99% / 96.79% / 94.24% | 96.85% / 96.72% / 94.11% |
| Held-out test set (4,996 sentences) | 98.53% / 98.27% / 97.88% | 98.50% / 98.25% / 97.90% |
| Penn historical corpora, 1500–1914 (5.1 million words) | 98.41% / – / 98.27% | 98.43% / – / 98.30% |
| Penn historical corpora, 1500–1600 | 97.34% / – / 94.56% | 97.26% / – / 94.74% |
| UD English EWT (modern web English) | 95.62% / 93.92% / 94.38% | 95.40% / 93.72% / 94.08% |
The Penn historical corpora (PPCEME and PPCMBE2, LDC2025T09) are a new test: annotated by hand, they are the only historic test independent of the annotating model. Their tags and lemmas are mapped to the model's conventions; TAG is not scored.
Performance by Century
| Period | POS | TAG | Lemma |
|---|---|---|---|
| 1500-1600 | 97.80% | 97.68% | 95.64% |
| 1600-1700 | 98.41% | 98.30% | 97.86% |
| 1700-1800 | 98.59% | 98.44% | 98.48% |
| 1800-1900 | 98.92% | 98.52% | 98.86% |
| 1900-2000 | 98.80% | 98.31% | 98.78% |
Requirements: spaCy >=3.8.5,<3.9.0, spacy-transformers 1.3 and transformers 4.48 or 4.49. Optionally, on a GPU, flash-attn 2.7.4 (install it only where the model runs on the GPU).
Historic French model v6 for Spacy 3.8
Improvements
Compared with v5 on the same test data:
| Test set | v5 POS / TAG / Lemma | v6 POS / TAG / Lemma |
|---|---|---|
| Hand-corrected gold (99 sentences) | 98.15% / 97.63% / 98.11% | 98.02% / 97.57% / 98.03% |
| Second gold set (100 sentences) | 97.49% / 96.58% / 97.36% | 97.63% / 96.66% / 97.76% |
| Held-out test set (4,999 sentences) | 98.38% / 97.74% / 97.26% | 98.50% / 97.85% / 97.53% |
| Sequoia (modern French) | 95.03% / – / 93.84% | 95.39% / – / 93.95% |
On the hand-corrected gold, v6 is a few tokens lower, within the variation between training runs.
What Changed
The model now uses spaCy's French tokenizer adapted to historic printing:
- Dashes are split from words, both dialogue dashes printed as a single hyphen (
-Mais→-+Mais) and dashes printed as--,---or—(---Oui,monde.--je). - Words spaCy keeps whole stay whole in any capitalization (
Peut-être,Celui-ci) and in historic spellings (peut-estre,aujourd'huy,celuy-cy,luy-mesme). Every pronoun + même form (moi-même,eux-mêmes) andceux-ciare kept whole too. - Clitics spaCy missed are split off:
as-tu→as+-tu, likewise -elles, -le, -la, -les, -lui, -leur, -y, -toi;Est-il→Est+-il; and elided clitics after a hyphen, as ina-t'il→a+-t'+il,va-t'en,donne-m'en.
The training annotations were tokenized the same way before retraining, so these tokens now get proper labels: -tu is PRON with lemma tu, luy-mesme has lemma lui-même. Token boundaries for these forms differ from v5's. The tokenizer rules are saved in the model, so it loads with spacy.load as before.
Performance by Century
| Period | POS | TAG | Lemma |
|---|---|---|---|
| 1500-1600 | 97.52% | 96.93% | 95.05% |
| 1600-1700 | 98.59% | 97.67% | 97.41% |
| 1700-1800 | 98.88% | 98.20% | 98.27% |
| 1800-1900 | 98.81% | 98.27% | 98.59% |
| 1900-2000 | 98.75% | 98.27% | 98.49% |
The test data were retokenized for this release, so these scores can't be compared with the figures in the v5 release notes.
Requirements: spaCy >=3.8.5,<3.9.0 and spacy-transformers
Historic English model v1 for Spacy 3.8
First release of the historic English model: part-of-speech tagging (UPOS pos_ and Penn Treebank tag_) and lemmatization in modern British spelling (lemma_) for British English printed from 1500 to 2000. It reads texts as printed (vnto, haue, ſaid, loueth, publick) and lemmatizes them to the modern word (unto, have, say, love, public).
Training data
65,000 sentences annotated by Gemini 3.8 Flash, then corrected by rules that were each checked against the gold sets: 20,000 from 1500–1600 and 15,000 from 1600–1700, whose spelling varies most, and 10,000 from each later century.
- 1500–1800: EEBO-TCP and ECCO-TCP, without the books printed in America.
- 1800–2000: British books from Project Gutenberg.
The tokenizer is spaCy's English tokenizer adapted to early modern forms ('Tis → 'T + is, th', I'le → I + 'le, do't → do + 't). Its rules are saved in the model, so it loads with spacy.load.
Performance
| Test set | POS | TAG | Lemma |
|---|---|---|---|
| Gold set 1 (100 sentences) | 98.48% | 98.31% | 97.07% |
| Gold set 2 (100 sentences) | 98.26% | 98.12% | 97.25% |
| Challenge set (39 sentences of rare historic forms) | 96.99% | 96.79% | 94.24% |
| Held-out test set (4,996 sentences) | 98.53% | 98.27% | 97.88% |
| 1500-1600 | 97.91% | 97.77% | 95.54% |
| 1600-1700 | 98.37% | 98.40% | 97.82% |
| 1700-1800 | 98.69% | 98.48% | 98.46% |
| 1800-1900 | 98.92% | 98.37% | 98.90% |
| 1900-2000 | 98.81% | 98.35% | 98.84% |
| UD English EWT test (modern web English) | 95.62% | 93.92% | 94.38% |
For comparison, spaCy's en_core_web_trf scores 88.53% / 89.58% / 86.05% on gold set 1 and 76.59% / 76.41% / 68.75% on the 1500–1600 test set.
The gold sets were adjudicated from the annotations of four language models and have not yet been corrected by hand. The held-out test set is annotated like the training data. Both therefore measure agreement with the annotation process more than accuracy. UD English EWT is the only fully independent test.
Requirements: spaCy >=3.8.5,<3.9.0 and spacy-transformers
Historic French model v5 for Spacy 3.8
Improvements
Compared with v4 on the same test data:
| Test set | v4 POS / TAG / Lemma | v5 POS / TAG / Lemma |
|---|---|---|
| Hand-corrected gold (99 sentences) | 95.44% / 95.55% / 97.50% | 98.14% / 97.62% / 98.14% |
| Second gold set (100 sentences) | 95.31% / 93.86% / 95.84% | 97.49% / 96.58% / 97.34% |
| Held-out test set (4,999 sentences) | 96.52% / 95.94% / 96.21% | 98.33% / 97.70% / 97.20% |
| Sequoia (modern French) | 94.00% / – / 93.49% | 95.03% / – / 93.84% |
What Changed
The training annotations were relabeled with about 40 rules that follow UD French conventions for POS and lemmas and the French Treebank for TAG. Each rule was checked against hand-corrected sentences. Some labels the model outputs have changed as a result:
- être is AUX as auxiliary and copula; avoir is AUX only before a past participle. Possessive avoir, il y a and modals (pouvoir, devoir) are VERB.
- Relative que is PRON, restrictive ne … que ("only") is ADV, the s' of s'il is SCONJ with lemma si, relative où is PRON, and car/ou are CCONJ.
- Conditional, future and imperfect verbs are no longer tagged as subjunctive.
- Object pronouns before a verb (les, lui, y, en) are PRON with clitic tags, and y is always PRON.
- Lemmas: articles and pronouns are reduced (la → le, ils → il), indefinite des → un, participles used as adjectives take the adjective as lemma (glacés → glacé), spellings use œ (cœur), and each word of parce que has its own lemma.
The conventions are documented in ANNOTATION_GUIDELINES.md. This release also adds a second gold set of 100 held-out sentences (20 per century), annotated to the same conventions, and aligns the hand-corrected gold with them.
Performance by Century
| Period | POS | TAG | Lemma |
|---|---|---|---|
| 1500-1600 | 97.39% | 96.78% | 94.84% |
| 1600-1700 | 98.43% | 97.50% | 97.09% |
| 1700-1800 | 98.73% | 98.14% | 97.97% |
| 1800-1900 | 98.62% | 98.13% | 98.20% |
| 1900-2000 | 98.49% | 98.00% | 98.03% |
All scores were measured on the current test data, so they can't be compared with the figures in the v4 release notes, which used the earlier labels.
Requirements: spaCy >=3.8.5,<3.9.0 and spacy-transformers
Historic French model v4 for Spacy 3.8
Improvements
Compared with v3 on the same test data:
| Test set | v3 POS / TAG / Lemma | v4 POS / TAG / Lemma |
|---|---|---|
| Hand-validated (100 sentences) | 95.22% / 97.01% / 97.38% | 95.88% / 97.55% / 97.64% |
| Held-out test set (5,000 sentences) | 96.01% / 96.56% / 96.51% | 97.60% / 96.85% / 96.87% |
| Sequoia (modern French) | 93.76% / – / 93.54% | 94.00% / – / 93.49% |
What Changed
- Fixed contraction splitting from v3, which used lemmas as the split words (
c'estbecamece+être). Contractions are now split into the words as written (c'+est,dit+-il), matching spaCy's tokenizer. - Restored the full 20th-century (1900-2000) training data: in v3, these sentences were accidentally cut from 10,000 to 2,292.
- Applied label fixes consistently to all training and test data, after checking each one against the hand-validated sentences:
- être and avoir are tagged AUX only as auxiliaries or copulas; main verbs stay VERB (il a un livre)
- que followed by a pronoun is no longer always tagged PRON, since most are conjunctions (je crois qu'il vient)
- pas as a noun (un pas) is no longer tagged ADV
- contracted articles are lemmatized as the preposition (du → de, au → à)
- Holds out 5% of the data for validation instead of 15%, adding about 5,000 training sentences.
Performance by Century
| Period | POS | TAG | Lemma |
|---|---|---|---|
| 1500-1600 | 96.65% | 95.95% | 94.46% |
| 1600-1700 | 97.59% | 96.54% | 96.81% |
| 1700-1800 | 97.94% | 97.12% | 97.65% |
| 1800-1900 | 97.96% | 97.43% | 97.88% |
| 1900-2000 | 97.90% | 97.31% | 97.69% |
The test sets were rebuilt with the fixes above, so these scores can't be compared with the figures in the v3 release notes.
Requirements: spaCy >=3.8.5,<3.9.0 and spacy-transformers
Historic French model v3 for Spacy 3.8
Improvements
- POS Accuracy: +1.84% (95.62% → 97.46%)
- TAG Accuracy: +0.07% (96.59% → 96.66%)
- Lemma Accuracy: +0.81% (95.34% → 96.15%)
- Better coverage of older texts: +2-3% POS accuracy on 1500-1700 periods
What Changed
- Fixed tokenization issues (apostrophe/hyphen contractions properly split)
- Applied targeted lemma corrections for common historical patterns
- Retrained on corrected and augmented data
- More consistent performance across all centuries
Performance by Century
| Period | POS | TAG | Lemma |
|---|---|---|---|
| 1500-1600 | 97.07% | 95.77% | 94.29% |
| 1600-1700 | 98.12% | 96.47% | 96.36% |
| 1700-1800 | 98.26% | 97.02% | 97.28% |
| 1800-1900 | 96.17% | 97.14% | 95.88% |
| 1900-2000 | 97.64% | 96.96% | 96.99% |
Historic French model for Spacy 3.8
A transformer-based spaCy model trained on historical French texts (1500-2000).
Performance:
- POS Accuracy: 97.06%
- Tag Accuracy: 96.61%
- Lemma Accuracy: 96.12%
Requirements:
- spaCy >=3.8.5,<3.9.0
Historic French model for Spacy 3.7
Initial release of the historic French SpaCy 3.7 model