Add compact on-device literary LMs (43 MB, 66 MB)
Browse filesFiles changed (3)
52 unmodified lines5354555657585960616263646566676869707152 unmodified linestbench_fz shenava-rizeh-v1.6.tzf silero_vad.onnx list.tsv out.tsv <threads> 16 lm/shenava-fa-wiki-4gram.bin 0.2 1.5 - 0```
## On-device LMs (small)
The full LM (`lm/shenava-fa-wiki-4gram.bin`, 989 MB) is meant for desktops and servers. For phones, use one of these compact KenLM tries. They're built from the same corpus plus Persian poetry (the Ganjoor couplet corpus and poet biographies), with the vocabulary capped at 120k/200k words, heavy pruning and 4-bit packing. They use the same engine flags; only the file changes (α 0.2, β 1.5, beam 16).
| LM | Size | Uniform TT (full benchmark) | Poetry WER (held-out Ganjoor) ||---|---|---:|---:|| none | 0 | 3.623 | 13.7% || `lm/shenava-fa-lit-3gram-43mb.bin` | 43 MB | 3.240 | 11.9% || `lm/shenava-fa-lit-3gram-66mb.bin` | 66 MB | 3.220 | 11.7% || `lm/shenava-fa-wiki-4gram.bin` | 989 MB | 3.119 | 10.6% |
The 43 MB LM keeps about 75% of the full LM's benchmark gain. Any benchmark sentence, any held-out test sentence, and any line sharing a 6-word sequence with one was removed from the LM text.
## Training
- Same recipe as v1.5:123version https://git-lfs.github.com/spec/v1oid sha256:e12f3be550c103862907f425504083be8d2cc79a58a89e9b2571389f2dcb7240size 43031977123version https://git-lfs.github.com/spec/v1oid sha256:07616bd41e3f791dee8386aa94d3f05f728226a76971d864c2fdf21902cd3149size 66446887README.md+13
lm/shenava-fa-lit-3gram-43mb.binAdded+3
lm/shenava-fa-lit-3gram-66mb.binAdded+3