kotoshu/grammar-ko v2 (deberta)
Korean grammar-correction weights β the deberta-v3-base rung, GECToR-style decode as a single fp16 ONNX (Cast-to-fp32 nodes; deberta ships int8-free).
Measured gate (held-out, corruption-gold, 1,582 sentences / 643 edits)
| metric | value |
|---|---|
| F0.5 | 0.5558 |
| precision | 0.6378 |
| recall | 0.367 |
Strict span scorer on the identical fixed slice grammar-ko v1 measured on (1,582 held-out sentences, 643 gold edits; 872 clean sentences kept clean by both), decoded from this exact artifact through the SpmBpe serving path, 1 round. Reference: v1 (mdeberta) measured 0.3944 (P .61 R .16) β the deberta encoder is +0.16 F0.5 (+41%), recall 2.3Γ.
Recipe
deberta-v3-base, bf16, 3 rounds x [4ep vanilla + 2ep KEEP-weighted @ LR/10],
keep 0.3, max_len 128, slow-spm tokenizer with per-word alignment.
Corruption pack: 359,212 pairs β the balanced-pack corpus family
(ko_v10_gector.jsonl, verified 1.00 edits/sent, all-REPLACE profile) on
which the v1 line trained, rebuilt with seed 20261123.
Lineage
Supersedes v1 (mdeberta, F0.5 0.3944) β remains in this repo's history.
Serving files
gec-tagger.int8.onnx (fp16 weight storage + Cast-to-fp32 nodes, sound on
arm64 + x86) + labels.json + pieces.json (55,132-piece pruned spm
vocab) + charsmap.json. Tokenizer: the SpmBpe encoder over pieces.json.
Serving calibration (MIN_CONFIDENCE, measured through the product surface)
Ruby-ship-decoder sweep on the same 1,582-sentence gate:
| MIN_CONFIDENCE | F0.5 | Precision | Recall |
|---|---|---|---|
| 0.0 | 0.5558 | 0.6378 | 0.367 |
| 0.3 | 0.5569 | 0.6396 | 0.367 |
| 0.5 | 0.5632 | 0.6501 | 0.367 |
| 0.7 (default) | 0.5821 | 0.6821 | 0.367 |
The sweep RISES with the threshold β this encoder is calibration-sensitive
(like ur/en; unlike the Latin rungs): the precision gain is free, recall
unchanged through mc 0.5. serving.json ships
{"min_confidence": 0.7} β consumers get the calibrated default with
zero config.