Skip to main content

CLAWS Tokenizer: Cluster Level Aggregation Khmer Word Segmentation

PyPI version License: MIT

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claws_tokenizer-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for claws_tokenizer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 206cd601747962a03b83935043b35e9cf76eb6dd804dd2b551edf4c56d416c36
MD5 0625101f3c3ce62a765750b3f231995c
BLAKE2b-256 3116fb348e0b04192f04ed89462344e71c512e0d791ae4bf55d01ecbb1b49cdd

See more details on using hashes here.

File details

Details for the file claws_tokenizer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claws_tokenizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a981d3bae5244f419a266ad68a6a2b92ccb17d14532b9424813343a342620ac
MD5 23d097d03a178f40bb03bd0819e57aaf
BLAKE2b-256 e08a44de00074437192776be7ed44baae6e6baef42057639b2c3d6c9458df70c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page