https://github.com/ai4bharat/indic-numtowords

A simple lightweight library for text normalization for Indian Languages

https://github.com/ai4bharat/indic-numtowords

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.5%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

A simple lightweight library for text normalization for Indian Languages

Basic Info
Statistics
  • Stars: 10
  • Watchers: 7
  • Forks: 8
  • Open Issues: 1
  • Releases: 0
Created over 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

AI4Bharat num2words

A module to convert numbers to words for Indian languages and English.

Installation

To install the module, run the following command: sh pip install indic-numtowords

Import

To use the library, import it using the following command: ssh from indic_numtowords import num2words

Usage

  1. Converts numbers into words in various languages: ssh words = num2words(38, lang='ta') #output: 'முப்பத்து எட்டு'
  2. Returns variations for numbers: ssh words = num2words(150, lang='hi', variations=True) #output: ['एक सौ पचास', 'डेढ़ सौ']
  3. Converts each digit separately: ssh words = num2words(420, lang='doi', split=True) #output: 'चार दो सिफर'

Parameters

The num2words function accepts the following parameters:

  • number: (int) The non-negative integer to convert into words.
  • lang: (str) The ISO code for the target language. Defaults to English (en).
  • variations: (bool, optional) If set to True, returns variations of the number.
  • split: (bool, optional) If True, converts each digit separately into its word form.

Supported Languages

The following languages are supported by the num2words module:

  • as: Assamese
  • bn: Bengali
  • brx: Bodo
  • doi: Dogri
  • en: English
  • gu: Gujarati
  • hi: Hindi
  • kn: Kannada
  • ks: Kashmiri
  • kok: Konkani
  • mai: Maithili
  • ml: Malayalam
  • mr: Marathi
  • mni: Manipuri
  • ne: Nepali
  • or: Odia
  • pa: Punjabi
  • sa: Sanskrit
  • sat: Santali
  • sd: Sindhi
  • 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.

Meta

Distributed under the MIT license. See LICENSE for more information.

Owner

  • Name: AI4Bhārat
  • Login: AI4Bharat
  • Kind: organization
  • Email: opensource@ai4bharat.org
  • Location: India

Artificial-Intelligence-For-Bhārat : Building open-source AI solutions for India!

GitHub Events

Total
  • Issues event: 4
  • Watch event: 5
  • Issue comment event: 4
  • Push event: 11
  • Pull request event: 1
  • Fork event: 3
Last Year
  • Issues event: 4
  • Watch event: 5
  • Issue comment event: 4
  • Push event: 11
  • Pull request event: 1
  • Fork event: 3

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 4
  • Total Committers: 3
  • Avg Commits per committer: 1.333
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
safikhanSoofiyani s****0@g****m 2
Nikhil Narasimhan n****9@g****m 1
svp19 s****9@g****m 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 3
  • Total pull requests: 4
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 6 months
  • Total issue authors: 3
  • Total pull request authors: 4
  • Average comments per issue: 1.33
  • Average comments per pull request: 0.25
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 5 hours
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • coding-dallas (1)
  • muqeem066 (1)
  • MahmoudAshraf97 (1)
Pull Request Authors
  • raj-sutariya (2)
  • ryback123 (1)
  • DevMehendale (1)
  • AshishKingdom (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 123,556 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 4
  • Total maintainers: 2
pypi.org: indic-numtowords

A module to convert numbers to words for Indian languages and English.

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 123,556 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 16.8%
Downloads: 18.5%
Average: 19.8%
Dependent repos count: 21.6%
Stargazers count: 31.9%
Maintainers (2)
Last synced: 11 months ago