Khmer Number to Text
A Python library for normalizing and converting Khmer numbers to text, with built-in support for translation.
Features
- Number Normalization: Clean and standardize Khmer digit strings (១០ -> ដប់).
Installation
Install the package via pip:
pip install km-num2text
Quick Start
The num_normalize function cleans up input strings to ensure they are in a standard format (all numbers are converted to text-based).
from km_num2text import num_normalize
input = "ឆ្នាំ២០២៦ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទី២១។"
normalized = num_normalize(input)
# ឆ្នាំពីរពាន់ម្ភៃប្រាំមួយ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទីម្ភៃមួយ។
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
km_num2text-1.0.1.tar.gz
(5.4 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 km_num2text-1.0.1.tar.gz.
File metadata
- Download URL: km_num2text-1.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19fd4c85102d3f318eff8bacd02c0ef39194cca326a7a6b1d1ee4d52a555bef4
|
|
| MD5 |
d12c0ee2953e0f96ad86578081dda595
|
|
| BLAKE2b-256 |
8ac820a4fe5def594a7338b225328c295ab8c94f9aa7b281e14da4d02e96f002
|
File details
Details for the file km_num2text-1.0.1-py3-none-any.whl.
File metadata
- Download URL: km_num2text-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4352be91490f7d795166023356572103e91ef3f86e8b6d4c967005edf693daf
|
|
| MD5 |
5165f0138e8c056711a30dd868fa8979
|
|
| BLAKE2b-256 |
096372cb2a867781da8430e3a03495a8d3057b939ae3cc04279ffbdfe012ff25
|