anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Splits Thai text into morphemes, the smallest pieces that still carry meaning, with a 4 MB model that runs on a CPU, for Thai language researchers and developers.
khammoon is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install khammoon pip install -U huggingface_hub hf download typhoon-ai/khammoon
khammoon is a small Thai text splitter. It cuts Thai text into morphemes, the smallest pieces that still carry meaning, following the annotation guideline in the project's linguistics folder. Usual Thai word splitters keep compounds whole, while khammoon breaks them into their meaningful parts. The model works on characters, weighs about 4 MB with roughly 1.06M parameters, and runs on a CPU with no GPU and no large language model.
Thai language engineers and researchers who prepare text for tagging, entity recognition or sentiment work will find it fits. Linguists who follow the same morpheme guideline can use it too.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| NLP research | Thai NLP researchers | Split text into morphemes before training a tagger | Preparing a corpus for part-of-speech tagging |
| Search and text tools | Software engineers | Break Thai strings into small units on a plain CPU | Splitting product names in a catalogue |
| Linguistics | Linguists | Apply one morpheme definition across a large corpus | Checking how a compound word breaks down |
| Education | Language-tool builders | Show learners the meaningful parts of a word | Splitting a compound into its parts |
If you work with languages other than Thai, you can skip it, since the card lists only Thai.
| Use case | Who | What they get back |
|---|---|---|
| Prepare training text | NLP researchers | A list of morpheme tokens for each sentence |
| Process a corpus | Data engineers | Token lists for many texts in one batch |
| Quick check in a terminal | Linguists | The pieces of a phrase shown on one line |
You need Python with pip. The card says the base package needs only numpy, and onnxruntime is an optional extra for speed.
pip install khammoon pip install -U huggingface_hub hf download typhoon-ai/khammoon
Call the segment function on a Thai string and it returns a list of pieces. For many texts, hand a whole list to a Segmenter in one go, which runs faster than separate calls. The command line tool reads standard input line by line.
khammoon "โรงเรียนสอนคนตาบอด"
| Tool | What it does |
|---|---|
| segment | Splits one Thai string into a list of morphemes |
| Segmenter | Loads the bundled model for repeated or batch calls |
| threshold | A lower value gives more boundaries and better recall |
| backend | Picks onnx or numpy, and auto uses onnx when onnxruntime is installed |
| khammoon command | Splits text from the terminal or from piped input |
You run the command line tool on the phrase from the card. It prints six pieces: โรง, เรียน, สอน, คน, ตา and บอด.
A morpheme is the smallest piece of a word that still has meaning. A good first step is to run the one-line command on a short Thai phrase and look at the pieces.
The model has about 1.06M parameters and learned from labels made by a large language model that segmented text in two passes. The card says khammoon makes about 5 times fewer errors than that model on its test set. It never alters the text, since joining the pieces always gives back the input, each space is its own piece, and splits fall only between Thai character clusters. On the card's test of 2,000 documents, boundary F1 is 0.992, against 0.925 for AttaCut. The card notes that older tools split into words, so their recall is low by design. These scores come from the authors.
Splits Thai text into morphemes, the smallest pieces that still carry meaning, with a 4 MB model that runs on a CPU, for Thai language researchers and developers.
Made by typhoon-ai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: khammoon is a small Thai text splitter. It cuts Thai text into morphemes, the smallest pieces that still carry meaning, following the annotation guideline in the project's linguistics folder. Usual Thai word splitters keep compounds whole, while khammoon breaks them into their meaningful parts. The model works on characters, weighs about 4 MB with roughly 1.06M parameters, and runs on a CPU with no GPU and no large language model.
Who it suits: Thai language engineers and researchers who prepare text for tagging, entity recognition or sentiment work will find it fits. Linguists who follow the same morpheme guideline can use it too.
Industry | Who uses it | How they use it | Example
NLP research | Thai NLP researchers | Split text into morphemes before training a tagger | Preparing a corpus for part-of-speech tagging
Search and text tools | Software engineers | Break Thai strings into small units on a plain CPU | Splitting product names in a catalogue
Linguistics | Linguists | Apply one morpheme definition across a large corpus | Checking how a compound word breaks down
Education | Language-tool builders | Show learners the meaningful parts of a word | Splitting a compound into its parts
If you work with languages other than Thai, you can skip it, since the card lists only Thai.
Where to use it:
Use case | Who | What they get back
Prepare training text | NLP researchers | A list of morpheme tokens for each sentence
Process a corpus | Data engineers | Token lists for many texts in one batch
Quick check in a terminal | Linguists | The pieces of a phrase shown on one line
How to set it up: You need Python with pip. The card says the base package needs only numpy, and onnxruntime is an optional extra for speed.
pip install khammoon
pip install -U huggingface_hub
hf download typhoon-ai/khammoon
How to use it: Call the segment function on a Thai string and it returns a list of pieces. For many texts, hand a whole list to a Segmenter in one go, which runs faster than separate calls. The command line tool reads standard input line by line.
khammoon "โรงเรียนสอนคนตาบอด"
Tool | What it does
segment | Splits one Thai string into a list of morphemes
Segmenter | Loads the bundled model for repeated or batch calls
threshold | A lower value gives more boundaries and better recall
backend | Picks onnx or numpy, and auto uses onnx when onnxruntime is installed
khammoon command | Splits text from the terminal or from piped input
Example: You run the command line tool on the phrase from the card. It prints six pieces: โรง, เรียน, สอน, คน, ตา and บอด.
For newcomers and experts: A morpheme is the smallest piece of a word that still has meaning. A good first step is to run the one-line command on a short Thai phrase and look at the pieces.
The model has about 1.06M parameters and learned from labels made by a large language model that segmented text in two passes. The card says khammoon makes about 5 times fewer errors than that model on its test set. It never alters the text, since joining the pieces always gives back the input, each space is its own piece, and splits fall only between Thai character clusters. On the card's test of 2,000 documents, boundary F1 is 0.992, against 0.925 for AttaCut. The card notes that older tools split into words, so their recall is low by design. These scores come from the authors.
You pass in a Thai string
The model scores each boundary between character clusters
Boundaries above the threshold become splits
You get back a list of morpheme tokens
Title: Boundary F1 on the card's test set, higher is better
PyThaiNLP newmm: 0.802 F1
deepcut: 0.921 F1
AttaCut: 0.925 F1
LLM segmenter: 0.962 F1
khammoon: 0.992 F1
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download typhoon-ai/khammoon
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| khammoon This page | 0 | 4 | — | cc-by-nc-sa-4.0 | |
| MakHam Thai TTSShares thai · onnx | 0 | 2 | — | apache-2.0 | |
| bert-base-NERShares token-classification · onnx | 1,038,928 | 750 | 108M | mit | |
| OpenAI Privacy FilterShares token-classification · onnx | 102,911 | 1,831 | 1.4B | apache-2.0 | |
| AstrLink GuardShares token-classification · onnx | 408 | 29 | — | apache-2.0 | |
| UltraBERT-150M-clairic-extractionShares token-classification · onnx | 138 | 5 | 151M | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.