Skip to content

Releases

Khmer Viterbi Segmenter 0.3.2

Choose a tag to compare

@Sovichea Sovichea released this 21 Sep 04:48

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_word and no suggestions, instead of a probable misspelling. For
    example កូវីដ reports កូ and ហ្វេសប៊ុក reports ប៊ុ as unknown_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 no unknown flag
    and is left untouched; the segmenter does not guess.
  • unknown_word is available in the Python, Rust, and WebAssembly APIs and is
    not suppressed by the profile min_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.

Khmer Viterbi Segmenter 0.3.1

Choose a tag to compare

@Sovichea Sovichea released this 19 Sep 12:34

Khmer Viterbi Segmenter 0.3.1

Version 0.3.1 is a precision fix for typo detection. It stops common phrases
from being reported as misspellings of rare compounds.

Highlights:

  • The typo detector no longer flags a phrase of common words when a
    machine-generated one-character alias happens to resemble a rare compound.
    For example ត្រីសួរ ("fish asked") is no longer reported as a typo of
    ត្រីសូរ, and អ្នកគ្រូ ("teacher") is no longer reported as a typo of
    អ្នកគ្រួ.
  • Reviewed phrase collisions are listed in
    khmer_typo_phrase_exclusions.txt and shared by the Python, Rust, and
    WebAssembly ports, so behaviour stays identical across implementations.
  • Approved correction pairs and real missing or extra រ typos, such as
    ចងកា -> ចងការ, are unchanged.

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:

  • Phrase collisions are reviewed rather than inferred from frequency, because
    missing or extra រ typos overlap the same surface patterns; regenerate the
    list with python scripts/build_typo_phrase_exclusions.py.
  • segmentation is lexical and deterministic, not full semantic parsing;
  • unknown names, new terminology, and informal forms can still require an
    application dictionary;
  • 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;
  • the C port reads KDIC data but does not yet expose the full analysis API.

Khmer Viterbi Segmenter 0.3.0

Choose a tag to compare

@Sovichea Sovichea released this 19 Sep 06:00

Khmer Viterbi Segmenter 0.3.0

Version 0.3.0 makes segmentation safer for text layout and adds a reviewed
spelling-authority layer for editors and spellcheckers. It keeps the Python,
Rust, WebAssembly, and embedded C ports aligned.

Highlights:

  • safe Khmer word-break opportunities for layout engines, with a lone-consonant
    guard and runtime composition breaks that share the segmenter's cost model;
  • a runtime word-composition policy that splits long curated forms into smaller
    accepted words, using a reviewed keep-list, a cost-dominance guard, and a
    completion length cap; applications can opt out with composition=False;
  • the composition split and completion cap are baked into KDIC compilation so
    Rust, WASM, and C inherit the same behaviour;
  • a selectable spelling authority (official by default, or community) that
    accepts a reviewed practical lexicon of legacy words and common variants such
    as អោយ and ឲ្យ, plus reviewed Chuon Nath and SBBIC forms, each tagged by
    source; the choice is shared by the Python, Rust, and WebAssembly APIs and
    both CLIs;
  • a secondary Chuon Nath 1967 frequency source blended into segmentation costs
    by default;
  • the default spelling accuracy is now visual, so the COENG DA/TA forms that
    render equivalently are accepted without weakening segmentation;
  • the strict/inclusive lexicon mode has been removed; every supplied pack
    participates in segmentation, with community evidence applied last;
  • a checksum-verified source fetch restores fresh-clone reproducibility for the
    repository build scripts.

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:

  • segmentation is lexical and deterministic, not full semantic parsing;
  • unknown names, new terminology, and informal forms can still require an
    application dictionary;
  • the reviewed practical spelling lexicon is intentionally permissive and
    source-tagged; consumers that need a narrower policy should filter by tag;
  • 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;
  • the C port reads KDIC data but does not yet expose the full analysis API.

Khmer Viterbi Segmenter 0.2.0

Choose a tag to compare

@Sovichea Sovichea released this 08 Sep 16:43

Khmer Viterbi Segmenter 0.2.0

Version 0.2.0 turns the project into a portable Khmer lexical-analysis engine
for Python, Rust, WebAssembly, and embedded C applications.

Highlights:

  • one KDIC v2 policy pack for segmentation, spelling, completion, reviewed
    corrections, lexical classes, and source provenance;
  • unified analysis APIs with stable diagnostic kinds and editor-friendly source
    ranges;
  • configurable lexical or visual handling of COENG DA and COENG TA variants;
  • conservative typing and strict spellcheck profiles, with higher-recall
    analysis available explicitly;
  • application dictionaries and correction pairs through the portable KLEX
    interchange format;
  • safe Khmer word-break opportunities and ZWSP insertion for layout engines;
  • equivalent core behavior in the Python, Rust, and WASM ports;
  • an optional pilot community pack containing 126 AI-assisted, auditable,
    segmentation-only forms discovered from Panhapich's Khmer Text Corpus;
  • an approved 300-sentence project regression benchmark.

The experimental hyphenation feature and KHYP data have been removed. Khmer
layout should use legal word boundaries rather than inserting Latin-style
hyphens inside words.

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:

  • segmentation is lexical and deterministic, not full semantic parsing;
  • unknown names, new terminology, and informal forms can still require an
    application dictionary;
  • 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;
  • the C port reads KDIC data but does not yet expose the full analysis API.

The pilot community pack does not grant spelling or autocomplete validity and
is loaded only when an application explicitly selects inclusive mode. Broader
community curation and contextual bigram/trigram reranking remain work for the
0.3 development line.

v0.2.0rc1 - RAC 2022 layered runtime

Pre-release

Choose a tag to compare

@Sovichea Sovichea released this 02 Aug 04:26

First release candidate for the RAC 2022 layered runtime.

Highlights:

  • Uses the attributed RAC 2022 vocabulary as spelling and autocomplete authority.
  • Restores conservative supplemental chunks for segmentation only.
  • Adds deterministic typo diagnostics, whole-span corrections, and named typing/document/high-recall profiles.
  • Adds Python CLI/API completion and spelling support with synchronized Rust and WebAssembly APIs.
  • Adds Khmer-aware confusion rules, including missing or extra standalone RO handling.
  • Keeps hyphenation experimental; results require review.

This is a prerelease intended for integration testing before the stable 0.2.0 release.

Full Changelog: v0.1.1...v0.2.0rc1

Khmer Viterbi Segmenter 0.1.1

Choose a tag to compare

@Sovichea Sovichea released this 15 Jul 02:52

First public release of khmer-viterbi-segmenter, a Python package for Khmer text processing.

Features

  • Khmer word segmentation using a Viterbi-based algorithm
  • Part-of-speech tagging
  • Experimental Khmer hyphenation
  • Command-line interface and Python API
  • Bundled Khmer dictionary, word-frequency, POS, and hyphenation data

Install

pip install khmer-viterbi-segmenter

Important note

Hyphenation is experimental. Some words may not yet be split correctly.

Data attribution and license

Bundled linguistic data is redistributed for non-commercial use with attribution to Seanghay. See DATA_LICENSE.md for the complete attribution and terms.

Khmer Viterbi Segmenter 0.1.0

Choose a tag to compare

@Sovichea Sovichea released this 15 Jul 02:33

First public release of khmer-viterbi-segmenter, a Python package for Khmer text processing.

Features

  • Khmer word segmentation using a Viterbi-based algorithm
  • Part-of-speech tagging
  • Experimental Khmer hyphenation
  • Command-line interface and Python API
  • Bundled Khmer dictionary, word-frequency, POS, and hyphenation data

Install

pip install khmer-viterbi-segmenter

Important note

Hyphenation is experimental. Some words may not yet be split correctly.

Data attribution and license

Bundled linguistic data is redistributed for non-commercial use with attribution to Seanghay. See DATA_LICENSE.md for the complete attribution and terms.