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
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 khmer_nlp_toolkits-0.1.0.tar.gz.
File metadata
- Download URL: khmer_nlp_toolkits-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c23a30b9443236a46dfe294a870905dc4f6029e8827d6850361f78be78452653
|
|
| MD5 |
6b3e2265b0b2b6348768386d9d11647a
|
|
| BLAKE2b-256 |
ffbec4dde21db69a59d64e00fedcd1d755e789a2b4649058143f924880e0477c
|
File details
Details for the file khmer_nlp_toolkits-0.1.0-py3-none-any.whl.
File metadata
- Download URL: khmer_nlp_toolkits-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7172cd95fb17456f3c9b42aff87f9f7d4d61b9daab06e6dc83ba36775c6e7b4c
|
|
| MD5 |
866845fbbab95718770d41c6967797fd
|
|
| BLAKE2b-256 |
4689c70dc010f987da083620bd74fa6017b60d4cc0691404bb4e8d97b7151771
|