khammoon: From a Linguistic Guideline to a Thai Morpheme Segmenter
Warit Sirichotedumrong, Adisai Na-Thalang, Chanakan Wittayasakpan, Kritsadha Phatcharoen, Kunat Pipatanakul
Abstract
Thai is written without spaces between words, making segmentation a foundational step in most Thai NLP pipelines. Existing tools primarily reproduce the word-level conventions of corpora such as BEST; however, because the notion of a "word" in Thai lacks a unified linguistic consensus, these conventions struggle with productive compounding, leading to arbitrary boundaries and ambiguity in downstream representations. Instead, we propose operating at the morphological level, focusing on khammoon, the smallest atomic unit that carries meaning. Segmenting at the morphemic level provides an explicit, consistent morphological representation that eliminates compounding ambiguity. Crucially, this representation benefits downstream learning: models trained on morphemes perform on par with or exceed word-level baselines across part-of-speech tagging, named-entity recognition, and sentiment classification, demonstrating that linguistic consistency improves representation quality without downstream performance penalty. To operationalize this representation, we translate linguistic principles into a formal decision guideline with near-perfect human agreement (), scale annotation with an LLM, and correct systematic errors with human labels. Finally, we train khammoon, a lightweight 1M-parameter convolutional BiLSTM segmenter designed for efficient CPU inference, achieving a boundary F1 of 0.992 on out-of-domain text. The guideline, datasets, model, and library are all publicly released.
Create a lesson
Metadata
- Comments
- Technical Report. Code, models, and data are available at https://github.com/warit-s/khammoon-segmenter
Related papers
Task-Dependent Linguistic Measures in Aphasia Discourse: A Comparative Analysis of Narrative, Descriptive, and Procedural Speech
Shared title terminologycs.CLEmma Al Kubaisi
DUET: Dual-MDL Unsupervised Entropy-Trie Segmentation for Low-Resource Languages
Shared title terminologycs.CLXiaotian Wang, Youyuan Lin, Zhan Shen et al.
Optimal Single-History Tokenization Disambiguation for Provably Secure Linguistic Steganography
Shared title terminologycs.CLFeng Jiang
MITRA-Swarm: Injecting Explicit Linguistic Structure into Foundation Models for Classical Machine Translation
Shared title terminologycs.CLKayshav Bhardwaj, Pragun Seth, Kush Bhardwaj et al.