Skip to main content

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)

Source distribution for km-num2text 1.0.1
File Size Uploaded
km_num2text-1.0.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for km-num2text 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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