Skip to main content

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 indic-numtowords

Usage

from indic_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


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.2.tar.gz (24.0 kB view details)

Uploaded Source

File details

Details for the file indic_numtowords-1.0.2.tar.gz.

File metadata

  • Download URL: indic_numtowords-1.0.2.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for indic_numtowords-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3ea633b658b4bc370e1ac32cf3bca93cc936fcc679a7bbf5d1350ac4c32f59da
MD5 be2d5bd8f199d3df777b23124b8af3c6
BLAKE2b-256 aa64c580bc3929a5e172f6d25a435e682c8cd6622f7a5cde549bfe222a58b300

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page