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)
# ឆ្នាំពីរពាន់ម្ភៃប្រាំមួយ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទីម្ភៃមួយ។
Metadata
Release files for km-num2text 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| km_num2text-1.0.1.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| km_num2text-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / km_num2text-1.0.1.tar.gz
| Download URL | km_num2text-1.0.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19fd4c85102d3f318eff8bacd02c0ef39194cca326a7a6b1d1ee4d52a555bef4
|
|
BLAKE2b-256 checksum How to use checksums |
8ac820a4fe5def594a7338b225328c295ab8c94f9aa7b281e14da4d02e96f002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / km_num2text-1.0.1-py3-none-any.whl
| Download URL | km_num2text-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4352be91490f7d795166023356572103e91ef3f86e8b6d4c967005edf693daf
|
|
BLAKE2b-256 checksum How to use checksums |
096372cb2a867781da8430e3a03495a8d3057b939ae3cc04279ffbdfe012ff25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|