Skip to content

Historic French model v4 for Spacy 3.8

Choose a tag to compare

@clovis clovis released this 13 Oct 02:50
· 9 commits to main since this release

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'est became ce + ê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