Repository navigation
Khmer Viterbi Segmenter 0.3.2
Version 0.3.2 stops the typo detector from "correcting" out-of-vocabulary
words without a reference.
Highlights:
- Out-of-vocabulary fragments are now reported with the new diagnostic kind
unknown_wordand no suggestions, instead of a probable misspelling. For
exampleកូវីដreportsកូandហ្វេសប៊ុកreportsប៊ុasunknown_word. - A whole unknown word that is not embedded in a longer run keeps its usual
fuzzy handling, so a genuine typo such asជូយ->ជួយis still a
probable_misspelling. - A name built only from valid short words (
សុខលីដា) has nounknownflag
and is left untouched; the segmenter does not guess. unknown_wordis available in the Python, Rust, and WebAssembly APIs and is
not suppressed by the profilemin_confidence, because it is a statement
about the lexicon, not a spelling confidence.
The bundled RAC-derived lexical data is redistributed for noncommercial use with
attribution. See DATA_LICENSE.md for its source, pinned revision, and terms.
The program source remains under the MIT license.
Known limitations:
- The segmenter still splits an out-of-vocabulary run into small tokens; it
signals the unsupported fragments and leaves recognition to downstream NER,
spellcheck, or an application dictionary. - A name made entirely of valid short words cannot be detected as unknown.
- segmentation is lexical and deterministic, not full semantic parsing;
- the 300-sentence benchmark was seeded from model output and then reviewed, so
it is a regression set rather than an independent linguistic gold standard.