Skip to main content

Khmer NLP toolkits

Project description

khmer_nlp_toolkits

Khmer NLP Toolkits is an open-source Python library that provides practical utilities, text processing functions, and NLP components for the Khmer language.

The project is designed to make Khmer NLP easier for:

  • Researchers
  • Students
  • Developers
  • Production systems
  • AI applications

It aims to provide a unified, lightweight, and extensible toolkit for common Khmer language processing tasks.

Installation

Requirements

  • Python 3.10+

Install from PyPI

pip install khmer_nlp_toolkits

Quick Start

from khmer_nlp_toolkits.text import *
from khmer_nlp_toolkits.number import num2text

print(num2text(2026))
# ពីរពាន់ម្ភៃប្រាំមួយ

print(anonymizer(("You can contact us by phone at +855 12 345 678, email us at support@example.com, "
"or visit our website at https://www.example.com anytime.")))
# You can contact us by phone at [TEL], email us at [EML], or visit our website at [URL] anytime.

print(text_cleaner(
    "\u200b Hello\u2014\u2014World!!!??      ខ្មែរ   123\u200b "
))
# "Hello - World !? ខ្មែរ 123"

Features

Khmer NLP Toolkits provides modular utilities and NLP components for Khmer language processing.

Commoncrawl 🔗

  • Content Quality Warning
  • Document Quality Filtering
  • Adult Content Filtering

Text Processing 🔗

  • Text Anonymization
  • Text Normalization
  • Text Cleaning
  • Segmentation

Number Processing 🔗

  • number conversion to text

Deduplication 🔗

  • URL deduplication
  • Content Deduplication

Utilities 🔗

  • End2End Pipeline
  • File Utilities Features

Vision

The long-term goal of Khmer NLP Toolkits is to help build a comprehensive open-source ecosystem for Khmer Natural Language Processing and accelerate Khmer AI/NLP research and development.

We hope this project can contribute to:

  • Better Khmer language tooling
  • Educational resources
  • NLP research accessibility
  • Open-source AI infrastructure for Khmer

Contributing

Contributions, issues, and feature requests are welcome.

Feel free to open a pull request or discussion.

Contributors

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

khmer_nlp_toolkits-0.1.1.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

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

khmer_nlp_toolkits-0.1.1-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

Details for the file khmer_nlp_toolkits-0.1.1.tar.gz.

File metadata

  • Download URL: khmer_nlp_toolkits-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for khmer_nlp_toolkits-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98d472a6c23ba53cdc11481eee7670aea47521f3147ed206a3024a59fc3296d0
MD5 3b9e6658a1816b2bef023ec153b1df81
BLAKE2b-256 a60723d80edfad65994927e0f86e30cedbe6c159642dfc131f63157a8b1d4321

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for khmer_nlp_toolkits-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c39f5d480bd91ac637ed440d2c8d5387e5fc4a067edf7e308252780aff520fb6
MD5 605706256ce7602d64bd221a199377a0
BLAKE2b-256 6d5bf2ce696ca6f29adfaa2bd76a4af7020e25448ed04afb21e11e7021fbb9a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page