French 1.3.0: run 2026-11-17-0743 (targeted pattern data) + its own 8 guards; gold 478/140/0/0, wrong corrections 0.075% Tatoeba, 0.025% Europarl
Browse files- NOTICE +4 -0
- README.md +56 -33
- config.json +0 -0
- gector-guards.json +5 -123
- gector-meta.json +14 -10
- model.onnx +2 -2
NOTICE
CHANGED
|
@@ -7,3 +7,7 @@ This product includes software developed by Patrick Andrew Hartnett for Proofbir
|
|
| 7 |
Based on Geotrend/bert-base-fr-cased by Geotrend (Apache License 2.0)
|
| 8 |
and the GECToR tagging scheme
|
| 9 |
(Omelianchuk et al., 2020; Apache License 2.0).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
Based on Geotrend/bert-base-fr-cased by Geotrend (Apache License 2.0)
|
| 8 |
and the GECToR tagging scheme
|
| 9 |
(Omelianchuk et al., 2020; Apache License 2.0).
|
| 10 |
+
|
| 11 |
+
Fine-tuned on text that includes the proceedings of the European Parliament
|
| 12 |
+
(© European Union, 1996-2011; Europarl, https://www.statmt.org/europarl/),
|
| 13 |
+
reused under the European Parliament's legal notice with the source acknowledged.
|
README.md
CHANGED
|
@@ -22,7 +22,7 @@ datasets:
|
|
| 22 |
|
| 23 |
**Try it in your browser:** type a sentence and see the corrections. The model runs on your own computer; nothing to install, and your text never leaves the page.
|
| 24 |
|
| 25 |
-
**Version 1.
|
| 26 |
|
| 27 |
A GECToR-style sequence tagger for French grammatical error correction, exported to ONNX (fp32) to run on the CPU.
|
| 28 |
It is the on-device grammar model of [Proofbird](https://proofbird.app), a writing assistant for Windows, and it is
|
|
@@ -66,43 +66,62 @@ Each suggestion gives the character position in **your** text (`start`, `length`
|
|
| 66 |
## What it corrects
|
| 67 |
|
| 68 |
Gender and number agreement (adjectives, past participles after `être`, nouns after numerals and determiners:
|
| 69 |
-
`Les filles sont fatigué` → `fatiguées`, `Les
|
| 70 |
-
(`Les enfants joue` → `jouent`), the verb's person after `vous` and `tu`
|
| 71 |
-
the word (`a` → `à`, `ou` → `où` in questions
|
| 72 |
-
(`
|
| 73 |
-
|
|
|
|
| 74 |
|
| 75 |
## How it was trained
|
| 76 |
|
| 77 |
- **Base encoder:** [`Geotrend/bert-base-fr-cased`](https://huggingface.co/Geotrend/bert-base-fr-cased) (Apache-2.0),
|
| 78 |
the French reduction of multilingual BERT. A tagging head (5 000 edit labels) and an error-detection head sit on top.
|
| 79 |
-
- **Data: synthetic only.** 3
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
- **No learner corpora** and no non-commercial data of any kind. No user text was used.
|
| 85 |
-
- One epoch (
|
|
|
|
| 86 |
|
| 87 |
## How it was measured
|
| 88 |
|
| 89 |
| Check | Result |
|
| 90 |
|---|---|
|
| 91 |
-
| Gold set (618 hand-written sentences: 478 with one error each, 140 correct) | **
|
| 92 |
-
|
|
| 93 |
-
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
The scores are the Proofbird app's: the model with the apply-side guards in `gector-guards.json` (below) and the `où`
|
| 96 |
-
rule (see *What Proofbird adds*;
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
`
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
the
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
## Files
|
| 108 |
|
|
@@ -112,7 +131,7 @@ non-word back. It has not been measured on learner essays.
|
|
| 112 |
| `config.json` | The edit-label vocabulary (`id2label`). |
|
| 113 |
| `vocab.txt`, `tokenizer.json`, `tokenizer_config.json` | The base encoder's WordPiece tokenizer. |
|
| 114 |
| `gector-meta.json` | Export facts: encoder, tokenizer family, decoding defaults, run id, version. |
|
| 115 |
-
| `gector-guards.json` | Apply-side guards: rules that hold back an edit the model gets wrong in a known way (for example `
|
| 116 |
| `language-rules.json` | Language facts the runtime needs (sentence-final punctuation handling). |
|
| 117 |
| `verb-form-vocab.txt` | Empty for French: verb forms are fixed by ending changes and whole-word edits. |
|
| 118 |
| `grammar-messages.json` | Short explanations shown with each correction. |
|
|
@@ -124,7 +143,7 @@ decoder can use them.
|
|
| 124 |
|
| 125 |
## How it works, step by step
|
| 126 |
|
| 127 |
-
The model never sees letters and never writes text. It reads numbers (token ids) and answers, for every word, which **edit** to make: one of 5 000 tags such as `$KEEP`, `$DELETE`, `$
|
| 128 |
|
| 129 |
**1. Prepare the text.** `language-rules.json` says the final full stop comes off before the model sees the sentence (it goes back on at the end): `Ma sœur sont très content`.
|
| 130 |
|
|
@@ -150,9 +169,9 @@ Two inputs, both whole numbers (int64), shape `[1, 7]`: one sentence of 7 tokens
|
|
| 150 |
| $START | 0.0% | $KEEP | 100.0% |
|
| 151 |
| Ma | 0.0% | $KEEP | 100.0% |
|
| 152 |
| sœur | 0.0% | $KEEP | 100.0% |
|
| 153 |
-
| sont | 99.
|
| 154 |
-
| très | 0.
|
| 155 |
-
| content |
|
| 156 |
|
| 157 |
→ `Ma sœur est très content`
|
| 158 |
|
|
@@ -165,7 +184,7 @@ Two inputs, both whole numbers (int64), shape `[1, 7]`: one sentence of 7 tokens
|
|
| 165 |
| sœur | 0.0% | $KEEP | 100.0% |
|
| 166 |
| est | 0.0% | $KEEP | 100.0% |
|
| 167 |
| très | 0.0% | $KEEP | 100.0% |
|
| 168 |
-
| content |
|
| 169 |
|
| 170 |
→ `Ma sœur est très contente`
|
| 171 |
|
|
@@ -187,7 +206,7 @@ Two inputs, both whole numbers (int64), shape `[1, 7]`: one sentence of 7 tokens
|
|
| 187 |
**6. Settings.** `Gector(repo, keep_confidence=0.0, min_error_prob=0.0)` takes the two GECToR precision knobs (the Proofbird app runs with both at 0, and at most five passes):
|
| 188 |
|
| 189 |
- `keep_confidence` adds a bonus to `$KEEP` before choosing: higher means fewer, safer edits.
|
| 190 |
-
- `min_error_prob` ignores an edit the model is less sure of, and leaves the whole sentence alone when no word is at least that likely to be wrong. With `min_error_prob=0.9` the example is still corrected (`Ma sœur est très contente.`): the model is 99.
|
| 191 |
|
| 192 |
## What Proofbird adds
|
| 193 |
|
|
@@ -207,7 +226,11 @@ The model weights and the files in this repository are released under the
|
|
| 207 |
|
| 208 |
The training data carries its own terms. Wikipedia text is © Wikipedia contributors,
|
| 209 |
[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). Tatoeba sentences are from
|
| 210 |
-
[tatoeba.org](https://tatoeba.org), [CC BY 2.0 FR](https://creativecommons.org/licenses/by/2.0/fr/).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
encoder is `Geotrend/bert-base-fr-cased` by Geotrend (Abdaoui et al., 2020, *Load What You Need: Smaller Versions of
|
| 212 |
Multilingual BERT*), Apache-2.0. The tagging scheme follows GECToR (Omelianchuk et al., 2020, *GECToR – Grammatical
|
| 213 |
Error Correction: Tag, Not Rewrite*).
|
|
|
|
| 22 |
|
| 23 |
**Try it in your browser:** type a sentence and see the corrections. The model runs on your own computer; nothing to install, and your text never leaves the page.
|
| 24 |
|
| 25 |
+
**Version 1.3.0** · run `2026-11-17-0743` · tag [`v1.3.0`](https://huggingface.co/proofbird/gector-bert-fr/tree/v1.3.0), the files the Proofbird app downloads. Pin it with `revision="v1.3.0"`. Earlier versions stay available under their tags (`v1.2.0`, `v1.1.0`, `v1.0.0`). Versions: a change to the model's design (encoder, inputs, outputs) raises the first number, a new training run or changed guards and rules the second, card or metadata fixes the third.
|
| 26 |
|
| 27 |
A GECToR-style sequence tagger for French grammatical error correction, exported to ONNX (fp32) to run on the CPU.
|
| 28 |
It is the on-device grammar model of [Proofbird](https://proofbird.app), a writing assistant for Windows, and it is
|
|
|
|
| 66 |
## What it corrects
|
| 67 |
|
| 68 |
Gender and number agreement (adjectives, past participles after `être`, nouns after numerals and determiners:
|
| 69 |
+
`Les filles sont fatigué` → `fatiguées`, `Les livres sont pur` → `purs`), irregular feminines (`La voiture était très
|
| 70 |
+
vieux` → `vieille`), subject-verb agreement (`Les enfants joue` → `jouent`), the verb's person after `vous` and `tu`
|
| 71 |
+
(`Vous a raison` → `avez`), accents that change the word (`a` → `à`, `ou` → `où` in questions, `garée la` → `là`),
|
| 72 |
+
contracted prepositions (`à le` → `au`, `de le` → `du`), elision (`le arbre` → `l'arbre`), the article of a noun in a
|
| 73 |
+
later clause (`…, et le voiture est garée` → `la voiture`, `…, et le ami de Paul` → `l'ami`), doubled words and articles
|
| 74 |
+
(`la la porte`), common homophones, and capitalisation at the start of a sentence.
|
| 75 |
|
| 76 |
## How it was trained
|
| 77 |
|
| 78 |
- **Base encoder:** [`Geotrend/bert-base-fr-cased`](https://huggingface.co/Geotrend/bert-base-fr-cased) (Apache-2.0),
|
| 79 |
the French reduction of multilingual BERT. A tagging head (5 000 edit labels) and an error-detection head sit on top.
|
| 80 |
+
- **Data: synthetic only.** Three sources, 3 250 000 sentences in all:
|
| 81 |
+
- 1 500 000 sentences from French Wikipedia
|
| 82 |
+
([`wikimedia/wikipedia`](https://huggingface.co/datasets/wikimedia/wikipedia), `20231101.fr`);
|
| 83 |
+
- 1 500 000 sentences from the proceedings of the European Parliament (Europarl v10, sessions 1996 – May 2011): speech
|
| 84 |
+
in the first and second person, questions and argument;
|
| 85 |
+
- 250 000 sentences from [Tatoeba](https://tatoeba.org), everyday French.
|
| 86 |
+
|
| 87 |
+
The text was corrupted by hand-written French error rules, each run over real text first and changed wherever the
|
| 88 |
+
"error" it made also occurs as correct French (`je la vois`, `Madame la commissaire`, `les pays`, `nous nous`,
|
| 89 |
+
`Qui sont …`, `la une`); about 10% stays clean, so the model learns to leave correct text alone. For the patterns that
|
| 90 |
+
are hard to learn, real sentences from the three sources were repeated with the error placed exactly on the pattern
|
| 91 |
+
(a plural adjective after `sont`, irregular feminines, `là` at the end of a clause, a contraction or an article after a
|
| 92 |
+
comma, `où`), together with correct sentences of the same shape: 80 750 extra lines and 62 520 sentence pairs. 176 000
|
| 93 |
+
additional template sentences teach patterns the corpora rarely contain (first and second person, questions, plural
|
| 94 |
+
participles, agreement in a later clause).
|
| 95 |
- **No learner corpora** and no non-commercial data of any kind. No user text was used.
|
| 96 |
+
- One epoch (118 361 steps, batch 64, learning rate 3e-5) on one NVIDIA L4. Run id `2026-11-17-0743`; the published
|
| 97 |
+
weights are the last step.
|
| 98 |
|
| 99 |
## How it was measured
|
| 100 |
|
| 101 |
| Check | Result |
|
| 102 |
|---|---|
|
| 103 |
+
| Gold set (618 hand-written sentences: 478 with one error each, 140 correct) | **478 fixed, 140 left alone, 0 missed, 0 made worse** |
|
| 104 |
+
| Wrong corrections on 4 000 everyday Tatoeba sentences (held out from training) | **3 (0.075%)**; 12 sentences changed: 7 fix an error in Tatoeba's own text, 2 are spelling alternatives |
|
| 105 |
+
| Wrong corrections on 4 000 sentences from European Parliament sessions the model never saw (June 2011) | **1 (0.025%)**; 3 changed, 2 fix an error in the text |
|
| 106 |
+
| Wrong corrections on 20 000 more of those sentences | **1 (0.005%)**; 7 changed, 6 fix an error in the text |
|
| 107 |
+
| Stability: the gold re-run with one extra token in front of each sentence | 3 sentences change result (the 4 capitalisation rows change by construction and are not counted) |
|
| 108 |
|
| 109 |
The scores are the Proofbird app's: the model with the apply-side guards in `gector-guards.json` (below) and the `où`
|
| 110 |
+
rule (see *What Proofbird adds*; 2 of the 478 fixes come from it). The model was trained for precision: a missed error
|
| 111 |
+
costs less than a wrong correction. A **wrong correction** is a change that makes correct text wrong or changes its
|
| 112 |
+
meaning; a change that fixes a real error in the test text (`le vie` → `la vie`, `Il est allé a Tokyo` → `à`,
|
| 113 |
+
`l'hotel` → `l'hôtel`, `Cela inquiéte` → `inquiète`) is a fix, and `connait` → `connaît` (both spellings are correct
|
| 114 |
+
since 1990) and `Wikipedia` → `Wikipédia` are counted as alternatives, not as wrong. The wrong ones: `une martre` →
|
| 115 |
+
`un`, `Il n'est pas dupe` → `dupé`, `le future` → `la future` (the error there is `future`, not the article) and
|
| 116 |
+
`Ou approuverez-vous …` → `Où`.
|
| 117 |
+
|
| 118 |
+
The guards, which run in the Proofbird app, keep `là` at the end of a clause (`l'étagère là`, never `la`), `est` after a
|
| 119 |
+
closing quote (`« Aix-la-Chapelle » est Aachen`, never `et`) and the plural verb after a coordinated subject
|
| 120 |
+
(`Marie est Paul restent` → `Marie et Paul restent`, never `reste`); a change of ending needs a determiner or subject
|
| 121 |
+
pronoun in view (`Soyez plus gentils` stays), and the app never proposes a non-word.
|
| 122 |
+
Known misses: a capitalised article at the start of a sentence is not elided (`Le arbre est grand`), and `ou` → `où` at
|
| 123 |
+
the end of a statement (`Tu as oublié tes clés ou.`) comes from the app's `où` rule, not from the model. It has not been
|
| 124 |
+
measured on learner essays.
|
| 125 |
|
| 126 |
## Files
|
| 127 |
|
|
|
|
| 131 |
| `config.json` | The edit-label vocabulary (`id2label`). |
|
| 132 |
| `vocab.txt`, `tokenizer.json`, `tokenizer_config.json` | The base encoder's WordPiece tokenizer. |
|
| 133 |
| `gector-meta.json` | Export facts: encoder, tokenizer family, decoding defaults, run id, version. |
|
| 134 |
+
| `gector-guards.json` | Apply-side guards: rules that hold back an edit the model gets wrong in a known way (for example `là` → `la` at the end of a clause). Part of the measured result. |
|
| 135 |
| `language-rules.json` | Language facts the runtime needs (sentence-final punctuation handling). |
|
| 136 |
| `verb-form-vocab.txt` | Empty for French: verb forms are fixed by ending changes and whole-word edits. |
|
| 137 |
| `grammar-messages.json` | Short explanations shown with each correction. |
|
|
|
|
| 143 |
|
| 144 |
## How it works, step by step
|
| 145 |
|
| 146 |
+
The model never sees letters and never writes text. It reads numbers (token ids) and answers, for every word, which **edit** to make: one of 5 000 tags such as `$KEEP`, `$DELETE`, `$APPEND_de`, `$REPLACE_as` or `$TRANSFORM_SUF__e` (change a word's ending). `quickstart.py` does everything around it. This is the real run of the example above.
|
| 147 |
|
| 148 |
**1. Prepare the text.** `language-rules.json` says the final full stop comes off before the model sees the sentence (it goes back on at the end): `Ma sœur sont très content`.
|
| 149 |
|
|
|
|
| 169 |
| $START | 0.0% | $KEEP | 100.0% |
|
| 170 |
| Ma | 0.0% | $KEEP | 100.0% |
|
| 171 |
| sœur | 0.0% | $KEEP | 100.0% |
|
| 172 |
+
| sont | 99.5% | **$REPLACE_est** | 99.6% |
|
| 173 |
+
| très | 0.1% | $KEEP | 100.0% |
|
| 174 |
+
| content | 19.9% | $KEEP | 73.2% |
|
| 175 |
|
| 176 |
→ `Ma sœur est très content`
|
| 177 |
|
|
|
|
| 184 |
| sœur | 0.0% | $KEEP | 100.0% |
|
| 185 |
| est | 0.0% | $KEEP | 100.0% |
|
| 186 |
| très | 0.0% | $KEEP | 100.0% |
|
| 187 |
+
| content | 100.0% | **$TRANSFORM_SUF__e** | 100.0% |
|
| 188 |
|
| 189 |
→ `Ma sœur est très contente`
|
| 190 |
|
|
|
|
| 206 |
**6. Settings.** `Gector(repo, keep_confidence=0.0, min_error_prob=0.0)` takes the two GECToR precision knobs (the Proofbird app runs with both at 0, and at most five passes):
|
| 207 |
|
| 208 |
- `keep_confidence` adds a bonus to `$KEEP` before choosing: higher means fewer, safer edits.
|
| 209 |
+
- `min_error_prob` ignores an edit the model is less sure of, and leaves the whole sentence alone when no word is at least that likely to be wrong. With `min_error_prob=0.9` the example is still corrected (`Ma sœur est très contente.`): the model is 99.5% sure one word is wrong.
|
| 210 |
|
| 211 |
## What Proofbird adds
|
| 212 |
|
|
|
|
| 226 |
|
| 227 |
The training data carries its own terms. Wikipedia text is © Wikipedia contributors,
|
| 228 |
[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). Tatoeba sentences are from
|
| 229 |
+
[tatoeba.org](https://tatoeba.org), [CC BY 2.0 FR](https://creativecommons.org/licenses/by/2.0/fr/). Contains text
|
| 230 |
+
from the proceedings of the European Parliament, © European Union, 1996–2011, reused under the European Parliament's
|
| 231 |
+
[legal notice](https://www.europarl.europa.eu/legal-notice/en/), through the Europarl corpus
|
| 232 |
+
([statmt.org/europarl](https://www.statmt.org/europarl/), Philipp Koehn, *Europarl: A Parallel Corpus for Statistical
|
| 233 |
+
Machine Translation*, MT Summit 2005). The base
|
| 234 |
encoder is `Geotrend/bert-base-fr-cased` by Geotrend (Abdaoui et al., 2020, *Load What You Need: Smaller Versions of
|
| 235 |
Multilingual BERT*), Apache-2.0. The tagging scheme follows GECToR (Omelianchuk et al., 2020, *GECToR – Grammatical
|
| 236 |
Error Correction: Tag, Not Rewrite*).
|
config.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gector-guards.json
CHANGED
|
@@ -12,37 +12,10 @@
|
|
| 12 |
"type": "auxiliary_number",
|
| 13 |
"note": "built-in (always on): keep 'e`' before a singular participle ('E` andata' is 3sg and correct; 'sono' would flip it to 1sg)"
|
| 14 |
},
|
| 15 |
-
{
|
| 16 |
-
"type": "redirect_replace",
|
| 17 |
-
"from": "la",
|
| 18 |
-
"to": "le",
|
| 19 |
-
"redirect": "là",
|
| 20 |
-
"whenPrevEndsWith": "é|ée|és|ées",
|
| 21 |
-
"note": "participle + la: the fix is the adverb là, never the article le"
|
| 22 |
-
},
|
| 23 |
-
{
|
| 24 |
-
"type": "redirect_replace",
|
| 25 |
-
"from": "est",
|
| 26 |
-
"to": "sont",
|
| 27 |
-
"redirect": "êtes",
|
| 28 |
-
"whenPrevIs": "vous",
|
| 29 |
-
"note": "Vous est -> êtes (the model picks the right number, wrong person)"
|
| 30 |
-
},
|
| 31 |
-
{
|
| 32 |
-
"type": "suppress_append_words",
|
| 33 |
-
"words": "le|la|les|un|une|des|du|de|à|au|aux|en|et|que",
|
| 34 |
-
"note": "drop a stray appended article/preposition (the retired drop_word artifact)"
|
| 35 |
-
},
|
| 36 |
-
{
|
| 37 |
-
"type": "pronoun_subject_agreement",
|
| 38 |
-
"words": "je|j'|tu|nous|vous",
|
| 39 |
-
"suffixes": "e|s|es|x",
|
| 40 |
-
"note": "the referent of je/tu/nous/vous is not in the text: never re-inflect an ending under them"
|
| 41 |
-
},
|
| 42 |
{
|
| 43 |
"type": "keep_before_boundary",
|
| 44 |
"words": "là",
|
| 45 |
-
"note": "an article cannot end a clause: clause-final là is never la/le/de"
|
| 46 |
},
|
| 47 |
{
|
| 48 |
"type": "agreement_needs_anchor",
|
|
@@ -51,99 +24,6 @@
|
|
| 51 |
"words": "le|la|les|l|un|une|des|du|au|aux|ce|cet|cette|ces|mon|ma|mes|ton|ta|tes|son|sa|ses|notre|nos|votre|vos|leur|leurs|chaque|quelques|plusieurs|tous|toutes|certains|certaines|deux|trois|quatre|cinq|je|j|tu|il|elle|on|nous|vous|ils|elles",
|
| 52 |
"note": "subjectless clauses (imperatives, infinitives, 'Merci à toutes'): an agreement-shaped edit (faites -> *fait, toutes -> *tout, seule -> *seul) or a listed verb pair right after a clitic needs a determiner or subject pronoun in view - the Italian 2026-09-19 lesson, applied to FR 2026-10-24 (the gold's 'Ne faites pas de bruit' clean rows)"
|
| 53 |
},
|
| 54 |
-
{
|
| 55 |
-
"type": "epicene_article",
|
| 56 |
-
"words": "élève|enfant|collègue|camarade|journaliste|artiste|dentiste|touriste|athlète|secrétaire|photographe|ministre|juge|pianiste|fleuriste|libraire|propriétaire|locataire|adulte|bibliothécaire|concierge|guide|interprète|partenaire|responsable|stagiaire|vétérinaire|architecte|comptable|scientifique|spécialiste|cycliste|pilote|gymnaste|pensionnaire|fonctionnaire|cinéaste",
|
| 57 |
-
"pairs": "le>la|la>le|un>une|une>un|ce>cette|cette>ce|cet>cette|cette>cet",
|
| 58 |
-
"scope": "names",
|
| 59 |
-
"note": "le/la élève, juge, collègue ... (PERSON nouns only: the gold asks for 'une livre' -> un, so gender-homonyms stay out) take both genders, and a capitalised word (la RCP, le Moskva: FR Tatoeba 2026-10-24) has a gender the text does not show - an article gender swap before them is never a fix"
|
| 60 |
-
},
|
| 61 |
-
{
|
| 62 |
-
"type": "require_cue",
|
| 63 |
-
"pairs": "est>et",
|
| 64 |
-
"cues": "#cap",
|
| 65 |
-
"scope": "next",
|
| 66 |
-
"note": "'est' -> 'et' only before a capitalised word (Marie est Paul -> et: the gold's coordination rows); before anything else it is the false alarm (Une réponse courte est suffisante -> *et: gold clean rows + Tatoeba x2, 2026-10-24)"
|
| 67 |
-
},
|
| 68 |
-
{
|
| 69 |
-
"type": "redirect_replace",
|
| 70 |
-
"from": "a",
|
| 71 |
-
"to": "à",
|
| 72 |
-
"redirect": "a",
|
| 73 |
-
"whenPrevIs": "vous|nous|tu|je|il|elle|ils|elles|on",
|
| 74 |
-
"note": "after a subject pronoun the fix for 'a' is the verb (Vous a raison -> avez), never the preposition à: kept for the writer (gold 2026-10-24)"
|
| 75 |
-
},
|
| 76 |
-
{
|
| 77 |
-
"type": "contraction_preference",
|
| 78 |
-
"from": "à",
|
| 79 |
-
"to": "au le",
|
| 80 |
-
"redirect": "au",
|
| 81 |
-
"note": "à le fixed as 'au le' becomes au (the article is part of the contraction)"
|
| 82 |
-
},
|
| 83 |
-
{
|
| 84 |
-
"type": "contraction_preference",
|
| 85 |
-
"from": "à",
|
| 86 |
-
"to": "aux les",
|
| 87 |
-
"redirect": "aux",
|
| 88 |
-
"note": "à les fixed as 'aux les' becomes aux (the article is part of the contraction)"
|
| 89 |
-
},
|
| 90 |
-
{
|
| 91 |
-
"type": "contraction_preference",
|
| 92 |
-
"from": "de",
|
| 93 |
-
"to": "du le",
|
| 94 |
-
"redirect": "du",
|
| 95 |
-
"note": "de le fixed as 'du le' becomes du (the article is part of the contraction)"
|
| 96 |
-
},
|
| 97 |
-
{
|
| 98 |
-
"type": "contraction_preference",
|
| 99 |
-
"from": "de",
|
| 100 |
-
"to": "des les",
|
| 101 |
-
"redirect": "des",
|
| 102 |
-
"note": "de les fixed as 'des les' becomes des (the article is part of the contraction)"
|
| 103 |
-
},
|
| 104 |
-
{
|
| 105 |
-
"type": "redirect_replace",
|
| 106 |
-
"from": "le",
|
| 107 |
-
"to": "la",
|
| 108 |
-
"redirect": "le",
|
| 109 |
-
"whenPrevIs": "je|tu|il|elle|on|nous|vous|ils|elles|ne",
|
| 110 |
-
"note": "object pronoun after a subject pronoun / ne: 'le' -> 'la' is never a fix (je le vois)"
|
| 111 |
-
},
|
| 112 |
-
{
|
| 113 |
-
"type": "redirect_replace",
|
| 114 |
-
"from": "le",
|
| 115 |
-
"to": "la",
|
| 116 |
-
"redirect": "le",
|
| 117 |
-
"whenPrevIs": "voudrais|voudrait|voudrions|voudriez|voudraient|veux|veut|voulons|voulez|veulent|voulais|voulait|peux|peut|pouvons|pouvez|peuvent|pouvais|pouvait|pourrais|pourrait|pourrions|pourriez|pourraient|dois|doit|devons|devez|doivent|devais|devait|devrais|devrait|devrions|devriez|devraient|vais|vas|va|allons|allez|vont|allais|allait|aime|aimes|aimons|aimez|aiment|aimerais|aimerait|sais|sait|savons|savez|savent|faut|fallait|préfère|préfères|préférons|préférez|préfèrent|espère|espères|espérons|espérez|espèrent|viens|vient|venons|venez|viennent|ose|oses|osent|laisse|laisses|laissez|laissent|fais|fait|faisons|faites|font",
|
| 118 |
-
"whenNextEndsWith": "er|ir|oir|ire|dre|ttre",
|
| 119 |
-
"note": "object pronoun before an infinitive: 'le' -> 'la' is never a fix (je voudrais le voir)"
|
| 120 |
-
},
|
| 121 |
-
{
|
| 122 |
-
"type": "redirect_replace",
|
| 123 |
-
"from": "la",
|
| 124 |
-
"to": "le",
|
| 125 |
-
"redirect": "la",
|
| 126 |
-
"whenPrevIs": "je|tu|il|elle|on|nous|vous|ils|elles|ne",
|
| 127 |
-
"note": "object pronoun after a subject pronoun / ne: 'la' -> 'le' is never a fix (je la vois)"
|
| 128 |
-
},
|
| 129 |
-
{
|
| 130 |
-
"type": "redirect_replace",
|
| 131 |
-
"from": "la",
|
| 132 |
-
"to": "le",
|
| 133 |
-
"redirect": "la",
|
| 134 |
-
"whenPrevIs": "voudrais|voudrait|voudrions|voudriez|voudraient|veux|veut|voulons|voulez|veulent|voulais|voulait|peux|peut|pouvons|pouvez|peuvent|pouvais|pouvait|pourrais|pourrait|pourrions|pourriez|pourraient|dois|doit|devons|devez|doivent|devais|devait|devrais|devrait|devrions|devriez|devraient|vais|vas|va|allons|allez|vont|allais|allait|aime|aimes|aimons|aimez|aiment|aimerais|aimerait|sais|sait|savons|savez|savent|faut|fallait|préfère|préfères|préférons|préférez|préfèrent|espère|espères|espérons|espérez|espèrent|viens|vient|venons|venez|viennent|ose|oses|osent|laisse|laisses|laissez|laissent|fais|fait|faisons|faites|font",
|
| 135 |
-
"whenNextEndsWith": "er|ir|oir|ire|dre|ttre",
|
| 136 |
-
"note": "object pronoun before an infinitive: 'la' -> 'le' is never a fix (je voudrais la voir)"
|
| 137 |
-
},
|
| 138 |
-
{
|
| 139 |
-
"type": "redirect_replace",
|
| 140 |
-
"from": "ou",
|
| 141 |
-
"to": "où",
|
| 142 |
-
"redirect": "ou",
|
| 143 |
-
"whenPrevIs": "jour|moment",
|
| 144 |
-
"whenNextIs": "l'autre|l’autre|l'un|l’un",
|
| 145 |
-
"note": "'un jour ou l'autre' / 'à un moment ou l'autre': the idiom's 'ou' is 'or', never où (FR 1.2.0, Tatoeba)"
|
| 146 |
-
},
|
| 147 |
{
|
| 148 |
"type": "redirect_replace",
|
| 149 |
"from": "est",
|
|
@@ -153,8 +33,10 @@
|
|
| 153 |
"note": "after a closing quote 'est' is the verb («Aix-la-Chapelle» est Aachen), never 'et' (FR 1.2.0, Tatoeba)"
|
| 154 |
},
|
| 155 |
{
|
| 156 |
-
"type": "
|
| 157 |
-
"
|
|
|
|
|
|
|
| 158 |
},
|
| 159 |
{
|
| 160 |
"type": "no_unknown_replacement",
|
|
|
|
| 12 |
"type": "auxiliary_number",
|
| 13 |
"note": "built-in (always on): keep 'e`' before a singular participle ('E` andata' is 3sg and correct; 'sono' would flip it to 1sg)"
|
| 14 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
{
|
| 16 |
"type": "keep_before_boundary",
|
| 17 |
"words": "là",
|
| 18 |
+
"note": "an article cannot end a clause: clause-final là is never la/le/de (run 4: l'étagère là -> *la)"
|
| 19 |
},
|
| 20 |
{
|
| 21 |
"type": "agreement_needs_anchor",
|
|
|
|
| 24 |
"words": "le|la|les|l|un|une|des|du|au|aux|ce|cet|cette|ces|mon|ma|mes|ton|ta|tes|son|sa|ses|notre|nos|votre|vos|leur|leurs|chaque|quelques|plusieurs|tous|toutes|certains|certaines|deux|trois|quatre|cinq|je|j|tu|il|elle|on|nous|vous|ils|elles",
|
| 25 |
"note": "subjectless clauses (imperatives, infinitives, 'Merci à toutes'): an agreement-shaped edit (faites -> *fait, toutes -> *tout, seule -> *seul) or a listed verb pair right after a clitic needs a determiner or subject pronoun in view - the Italian 2026-09-19 lesson, applied to FR 2026-10-24 (the gold's 'Ne faites pas de bruit' clean rows)"
|
| 26 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
{
|
| 28 |
"type": "redirect_replace",
|
| 29 |
"from": "est",
|
|
|
|
| 33 |
"note": "after a closing quote 'est' is the verb («Aix-la-Chapelle» est Aachen), never 'et' (FR 1.2.0, Tatoeba)"
|
| 34 |
},
|
| 35 |
{
|
| 36 |
+
"type": "compound_subject_number",
|
| 37 |
+
"words": "et|est",
|
| 38 |
+
"pairs": "-ent>-e|-aient>-ait|sont>est|ont>a|font>fait|vont>va|étaient>était|avaient>avait",
|
| 39 |
+
"note": "a coordinated subject ('Marie et Paul') is plural: no plural->singular verb edit next to one; est = the et homophone the model fixes in the same pass (run 4 gold: Marie est Paul restent -> et + *reste)"
|
| 40 |
},
|
| 41 |
{
|
| 42 |
"type": "no_unknown_replacement",
|
gector-meta.json
CHANGED
|
@@ -18,21 +18,25 @@
|
|
| 18 |
"min_error_prob": 0.0,
|
| 19 |
"n_iteration": 5
|
| 20 |
},
|
| 21 |
-
"run_id": "2026-11-
|
| 22 |
-
"exported_at": "2026-11-
|
| 23 |
"checkpoint": "ckpt_best.pt",
|
| 24 |
"git_commit": null,
|
| 25 |
"recipe_sha256": {
|
| 26 |
-
"build_dataset.py": "
|
| 27 |
"preprocess.py": "384e6c617e5e",
|
| 28 |
-
"train.py": "
|
| 29 |
-
"export_onnx.py": "
|
| 30 |
-
"runrecord.py": "
|
| 31 |
-
"tatoeba_split.py": "
|
| 32 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
"morph_fr.py": "fb188b83737f",
|
| 34 |
"language-rules.fr.json": "fa42ed3ae1ff",
|
| 35 |
"grammar-messages.fr.json": "5d26138e1abc"
|
| 36 |
-
}
|
| 37 |
-
"version": "1.2.0"
|
| 38 |
}
|
|
|
|
| 18 |
"min_error_prob": 0.0,
|
| 19 |
"n_iteration": 5
|
| 20 |
},
|
| 21 |
+
"run_id": "2026-11-17-0743",
|
| 22 |
+
"exported_at": "2026-11-17T13:30:41+00:00",
|
| 23 |
"checkpoint": "ckpt_best.pt",
|
| 24 |
"git_commit": null,
|
| 25 |
"recipe_sha256": {
|
| 26 |
+
"build_dataset.py": "bd7dfb77f697",
|
| 27 |
"preprocess.py": "384e6c617e5e",
|
| 28 |
+
"train.py": "0099cfb09274",
|
| 29 |
+
"export_onnx.py": "43b4fffc72b5",
|
| 30 |
+
"runrecord.py": "d73525f310fb",
|
| 31 |
+
"tatoeba_split.py": "7cf3f8b22747",
|
| 32 |
+
"selection.py": "b20862d4cb42",
|
| 33 |
+
"lanes.py": "2fed6c3e606d",
|
| 34 |
+
"europarl_split.py": "3f4102d7eba1",
|
| 35 |
+
"drop_old_spelling.py": "cc92648c3f28",
|
| 36 |
+
"mine_patterns.py": "38402dca01a8",
|
| 37 |
+
"corrupt_fr.py": "5e68cba7989f",
|
| 38 |
"morph_fr.py": "fb188b83737f",
|
| 39 |
"language-rules.fr.json": "fa42ed3ae1ff",
|
| 40 |
"grammar-messages.fr.json": "5d26138e1abc"
|
| 41 |
+
}
|
|
|
|
| 42 |
}
|
model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dad32c26d3cb81650d01f54cdc9871c981f93f675de060c2681ef98ffe971cef
|
| 3 |
+
size 432717732
|