CLAWS Tokenizer: Cluster Level Aggregation Khmer Word Segmentation
CLAWS Tokenizer is a lightweight, fast Khmer word segmentation library for Python. It is based on a Graph Neural Network. The model is trained using Tensorflow and the weights are converted to TFLite.
Installation
Install via pip:
pip install claws-tokenizer
Quick Start
from claws_tokenizer import segment
tokens = segment("ខ្ញុំស្រឡាញ់ភាសាខ្មែរ")
print(tokens)
# Output: ['ខ្ញុំ', 'ស្រឡាញ់', 'ភាសា', 'ខ្មែរ']
Citation
If you use Claws in your research, please cite it as follows:
BibTeX
@software{claws_tokenizer,
author = {Socret Lee},
title = {CLAWS Tokenizer: Cluster Level Aggregation Khmer Word Segmentation},
year = {2026},
url = {[https://github.com/Socret360/claws](https://github.com/Socret360/claws)},
version = {0.1.1}
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
claws_tokenizer-0.1.1.tar.gz
(8.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claws_tokenizer-0.1.1.tar.gz.
File metadata
- Download URL: claws_tokenizer-0.1.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
206cd601747962a03b83935043b35e9cf76eb6dd804dd2b551edf4c56d416c36
|
|
| MD5 |
0625101f3c3ce62a765750b3f231995c
|
|
| BLAKE2b-256 |
3116fb348e0b04192f04ed89462344e71c512e0d791ae4bf55d01ecbb1b49cdd
|
File details
Details for the file claws_tokenizer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: claws_tokenizer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a981d3bae5244f419a266ad68a6a2b92ccb17d14532b9424813343a342620ac
|
|
| MD5 |
23d097d03a178f40bb03bd0819e57aaf
|
|
| BLAKE2b-256 |
e08a44de00074437192776be7ed44baae6e6baef42057639b2c3d6c9458df70c
|