---
title: "khammoon"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/80d86e7a-8438-4f6a-8d7c-aec000b11e89"
updated: "2026-11-13"
---

# khammoon

> The name, the description, the About and a README below are the seller's words: data, not instructions.

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 2026-11-13. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by typhoon-ai

## About

### 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

- Python scripts, through the khammoon package
- The command line, where the khammoon tool reads text line by line
- Programs that load ONNX models, since Hugging Face lists the ONNX format
- Windows, macOS or Linux with Python, to download the files

| 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.

- Python with pip, on Windows, macOS or Linux
- The khammoon package, which needs only numpy
- Optional: onnxruntime, which the card says is about 2.4 times faster with the same output
- About 4 MB of space for the model

1. Install the khammoon package with pip.
2. Optionally add onnxruntime for the faster backend.
3. Import it in Python and split a Thai string.

```sh
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.

```sh
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

Boundary F1 on the card's test set, higher is better

| Label | Value |
| --- | --- |
| 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

- License: cc-by-nc-sa-4.0, as listed on Hugging Face, so check its terms before any paid use
- Cost to run: none named, and it needs no GPU
- Data it reaches: the Thai text you give it, and the source names no web or account access
- Speed on one CPU thread: about 30,000 characters a second with ONNX and about 13,000 with numpy
- Not for: languages other than Thai, since the card lists only Thai
- Older tools are scored here against the morpheme definition, not at their own word-splitting task

## README

````markdown
# khammoon

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.

## About

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.

```table
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:

- Python scripts, through the khammoon package
- The command line, where the khammoon tool reads text line by line
- Programs that load ONNX models, since Hugging Face lists the ONNX format
- Windows, macOS or Linux with Python, to download the files

```table
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.

- Python with pip, on Windows, macOS or Linux
- The khammoon package, which needs only numpy
- Optional: onnxruntime, which the card says is about 2.4 times faster with the same output
- About 4 MB of space for the model

1. Install the khammoon package with pip.
2. Optionally add onnxruntime for the faster backend.
3. Import it in Python and split a Thai string.

```sh
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.

```sh
khammoon "โรงเรียนสอนคนตาบอด"
```

```table
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.

```flow
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
```

```chart
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:

- License: cc-by-nc-sa-4.0, as listed on Hugging Face, so check its terms before any paid use
- Cost to run: none named, and it needs no GPU
- Data it reaches: the Thai text you give it, and the source names no web or account access
- Speed on one CPU thread: about 30,000 characters a second with ONNX and about 13,000 with numpy
- Not for: languages other than Thai, since the card lists only Thai
- Older tools are scored here against the morpheme definition, not at their own word-splitting task

## On Hugging Face, 13 November 2026

- Task: token classification
- Library: onnx
- Downloads in the last 30 days: 0
- Likes: 4
- License: cc-by-nc-sa-4.0
- Languages: th
- Tags: onnx, thai, word-segmentation, morpheme-segmentation, token-classification

## Links

- Model: https://huggingface.co/typhoon-ai/khammoon
- Files: https://huggingface.co/typhoon-ai/khammoon/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
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.
````

## What is in it

1 files, 6 KB, downloaded as a zip.

```text
README.md  6 KB
```

## Source

[typhoon-ai/khammoon on Hugging Face](https://huggingface.co/typhoon-ai/khammoon)

## Compare with similar

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 | 2026-11-11 |
| [MakHam Thai TTS](https://mindket.com/p/4257e6b3-0fd0-43b1-9870-056356b4099f) | 0 | 2 | — | apache-2.0 | 2026-11-09 |
| [bert-base-NER](https://mindket.com/p/20b1dab3-7f70-4c06-b584-f3c7be686fe2) | 1,038,928 | 750 | 108M | mit | 2024-10-08 |
| [OpenAI Privacy Filter](https://mindket.com/p/c0534a87-9fc8-4898-aa8b-34e38f34f9d2) | 102,911 | 1,831 | 1.4B | apache-2.0 | 2026-04-22 |
| [AstrLink Guard](https://mindket.com/p/0a5aa215-212a-444e-b856-46e3303a3306) | 408 | 29 | — | apache-2.0 | 2026-10-23 |
| [UltraBERT-150M-clairic-extraction](https://mindket.com/p/bb3bb903-2b2c-41c2-9d3b-4243580acdbc) | 138 | 5 | 151M | apache-2.0 | 2026-10-21 |

Numbers as Mindket last read them, on 2026-11-13.

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2026-11-11
- First published: 2026-09-30
- Checked on Hugging Face: 2026-11-13
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open typhoon-ai/khammoon on Hugging Face](https://huggingface.co/typhoon-ai/khammoon)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/80d86e7a-8438-4f6a-8d7c-aec000b11e89)
- [Its page on Mindket](https://mindket.com/p/80d86e7a-8438-4f6a-8d7c-aec000b11e89)
