mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
build-typing-model.py pl <work> pl.hextm [nkjp+parlamint|nkjp|parlamint] builds the Polish
model that passed the typing gate on the iOS engine. Polish has no Google Books counts, so:
- words and pairs come from NKJP's n-grams (300M-word balanced subcorpus), kept where PoliMorf
lists the word;
- a plain spelling goes when NKJP or ParlaMint 5.0 (which writes every mark) has its marked twin
at least 20 times as often ('ide' is 3.6 times rarer than 'idę' in NKJP, 97 times in
ParlaMint); each corpus alone failed the gate (ParlaMint changed 0.84% of correct words, NKJP
kept 'ide');
- a pair may span a comma ('wiem, że' is typed 'wiem że'); pairs need 10 sightings in NKJP;
- ł's base letter is l (BASES), as é's is e;
- it also writes <output>.valid, PoliMorf's other words NKJP uses at least twice, in Android's
validity-list format, for the dictionary reader Polish needs on iOS.
POLISH_INPUTS names each input's URL, licence and SHA-256; the build refuses a changed file.
English and Spanish take the same code path as before; write_model's pair threshold became a
parameter whose default is the old MIN_PAIR.
Rebased onto dev
|
||
| .. | ||
| build-emoji-data.py | ||
| build-german-capitals.py | ||
| build-typing-model.py | ||
| emoji-aliases-en.txt | ||
| en-extra-words.tsv | ||
| fetch-cleanup-model.sh | ||
| marketing-release.sh | ||
| typing-gate.py | ||