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}
}
Metadata
Release files for claws-tokenizer 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| claws_tokenizer-0.1.2.tar.gz | 1.5 MB | Without provenance | Details for claws_tokenizer-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claws_tokenizer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for claws_tokenizer-0.1.2-py3-none-any.whl |
Total release size: 2.9 MB
Release files / claws_tokenizer-0.1.2.tar.gz
| Download URL | claws_tokenizer-0.1.2.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b2e9d8968fdc0e429c12c97f56631abbf3d6a99928ce7b888725204161e40d1
|
|
BLAKE2b-256 checksum How to use checksums |
d37a424281f54e16c164026316529ce867303cfe762983582a73ef5edc5e0a30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / claws_tokenizer-0.1.2-py3-none-any.whl
| Download URL | claws_tokenizer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
202da717f2ec3cb886250a6b89bfae28a3a8185bd1ddcff1a5f6eedc1677980b
|
|
BLAKE2b-256 checksum How to use checksums |
376d0e7d44660b8e2f4792c97b8fd05ec07bf6aa2b2f2ed05164aef59b3dd72c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for claws-tokenizer 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.