Repository navigation
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