Mark as superseded by kviskr-tegnsetting-no
Browse files3 unmodified lines4567893 unmodified lines1314151617181920212223242526272829303132333435363738394041424344454647483 unmodified lines- 'no'- nbbase_model: 1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecasetags:- punctuation- truecasing3 unmodified lines- kviskr---# Kviskr punctuation (norsk) — INT8 ONNXTegnsettings- og truecasing-modellen som brukes av [Kviskr](https://kviskr.no)(lokal norsk diktering for macOS) til å sette komma, punktum, spørsmålstegn ogstore bokstaver i rå verbatim-transkripsjon — helt på enheten.Dette er en INT8-kvantisert ONNX-eksport av[`1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase`](https://huggingface.co/1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase)(XLM-RoBERTa token-klassifiserer, 47 språk, Apache 2.0), med bool-utgangercastet til int64 for ONNX Runtime-kompatibilitet på macOS. Entoken-klassifiserer kan strukturelt ikke droppe, endre eller legge til ord.## Filer| Fil | Innhold ||---|---|| `model_embed.onnx` | INT8-kvantisert modell (~279 MB) || `tokenizer.json` | XLM-R-tokenizer (swift-transformers-kompatibel) || `tokenizer_config.json`, `config.json` | tokenizer-/modellkonfig |## Målt på norsk (eval-gate 2026-06-10)Evaluert på ekte verbatim-ASR-output (NB-Whisper large verbatim) overNasjonalbibliotekets eval-sett (200 klipp, mange stemmer, fem domener) +et fasit-merket dikteringssett:- **Ord-bevaring: 0/230 brudd** (modellen endret aldri et ord)- Sluttegn-F1 **0,81**, komma-F1 0,53, truecasing **97,0 %** (round-trip)- Case+tegn-feilrate på diktering: 29,6 % (rå) → **9,8 %** (med modellen)## LisensApache 2.0, samme som basismodellen. Kvantisering og eval av Kviskr.3 unmodified lines45678910113 unmodified lines151617181920212223242526272829303132333435363738394041424344453 unmodified lines- 'no'- nbbase_model: 1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecasepipeline_tag: token-classificationlibrary_name: onnxtags:- punctuation- truecasing3 unmodified lines- kviskr---# Kviskr punctuation (Norwegian), INT8 ONNX> **Superseded by [`skolfus/kviskr-tegnsetting-no`](https://huggingface.co/skolfus/kviskr-tegnsetting-no)**, which is about 14× smaller, scores higher on Norwegian dictation and spontaneous speech, and is built so it cannot change a word. This model is kept as a research baseline.An INT8-quantized ONNX export of [`1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase`](https://huggingface.co/1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase) (XLM-RoBERTa token classifier, 47 languages), evaluated on Norwegian dictation. Boolean outputs are cast to int64 for ONNX Runtime on macOS.## Files| File | Contents ||---|---|| `model_embed.onnx` | INT8-quantized model (~279 MB) || `tokenizer.json` | XLM-R tokenizer (swift-transformers compatible) || `tokenizer_config.json`, `config.json` | Tokenizer and model config |## Evaluation (10 Jun 2026)Measured on real verbatim ASR output (NB-Whisper large verbatim) over the National Library's evaluation set (200 clips, many speakers, five domains) and a labelled dictation set:- Sentence-end F1 **0.81**, comma F1 0.53, truecasing **97.0%**- Case and punctuation error rate on dictation: 29.6% (raw) → **9.8%**## Known issueThe model classifies subwords, so it can break abbreviations: `bl.a.` → `b.l...a.`, `m.v.` → `m...v.`. On a held-out text benchmark this affected 9.3% of chunks (279 of 3,000). On ASR text it is rare (1 of 327 clips), since the speech model writes «blant annet», not «bl.a.». The successor model fixes this by predicting per word.## LicenseApache 2.0, the same as the base model. Quantization and evaluation by Kviskr.
README.md+20-23