A module to convert numbers to words for Indian languages and English.
Project description
AI4Bharat num2words
A module to convert numbers to words for Indian languages and English.
Installation
pip install ai4bharat-num2words
Usage
from indic_numtowords.numtowords import num2words
words = num2words(38, lang='ta', variations=False)
#output: 'முப்பத்து எட்டு'
words = num2words(150, lang='hi', variations=True)
#output: ['एक सौ पचास', 'डेढ़ सौ']
Supported Languages
ISO 639 Code | Language |
---|---|
as | Assamese - অসমীয়া |
bn | Bangla - বাংল |
en | English |
gu | Gujarati - ગુજરાત |
hi | Hindi - हिंद |
kn | Kannada - ಕನ್ನ |
ml | Malayalam - മലയാള |
mr | Marathi - मराठी |
or | Oriya - ଓଡ଼ି |
pa | Panjabi - ਪੰਜਾਬ |
ta | Tamil - தமிழ |
te | Telugu - తెలుగ |
ur | Urdu - اُردُ |
Release Notes
This package contains work on converting numbers to words. The contents of this package can also be downloaded from our GitHub repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
indic_numtowords-1.0.0.tar.gz
(22.2 kB
view hashes)