indic-num2words - Convert numbers to words for indian languages
===============================================================
The code has been converted into PyPI module for the easy installation and update.
``indic-num2words`` moduls converts numbers like ``36`` to words like ``छत्तीस``.
Use Cases
------------------------------------
1. Speech recognition pre-processing
2. Language modeling data pre-processing
Installation
------------------------------------
To install latest PyPI stable release
```
pip install indic-num2words
```
Usage
------------------------------------
In code there's only one function to use
```python
>>> from num_to_words import num_to_word
>>> num_to_word(36, lang='hi')
छत्तीस
>>> num_to_word('४५', lang='hi')
पैंतालीस
>>> num_to_word("35,43,57,730", lang='hi')
पैंतीसकरोड़ तैंतालीसलाख सत्तावनहज़ार सातसौ तीस
>>> num_to_word(795, lang='kn', separator='-')
ಏಳುನೂರ-ತೊಂಬತ್ತೈದು
>>> num_to_word(545589, lang='en', separator=', ', combiner='-')
five-lakh, forty-five-thousand, five-hundred, eighty-nine
```
The module currently supports the following languages:
* ``en`` (English-India)
* ``hi`` (Hindi)
* ``gu`` (Gujarati)
* ``mr`` (Marathi)
* ``bn`` (Bengali)
* ``te`` (Telugu)
* ``ta`` (Tamil)
* ``kn`` (Kannada)
* ``or`` (Oriya)
* ``pa`` (Punjabi)
What's next
-----------
Add Support for following Languages
* Malayalam
* Urdu
* Assamese
check utils/constants.py to add support for any indian languages., it's pretty easy.
``Shout out if you want to help :)``
Raw data
{
"_id": null,
"home_page": "https://github.com/sutariyaraj/indic-num2words/",
"name": "indic-num2words",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "python, indic, languages, text to speech, TTS, setup.py",
"author": "Indic-Num2Words Contributors",
"author_email": "sutariyaraj77725@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1c/85/2cee418a428198ec247d32f8b36431d005011089efdbd331d0f82a3aaadb/indic_num2words-1.2.1.tar.gz",
"platform": null,
"description": "\n\nindic-num2words - Convert numbers to words for indian languages\n===============================================================\n\nThe code has been converted into PyPI module for the easy installation and update.\n\n``indic-num2words`` moduls converts numbers like ``36`` to words like ``\u091b\u0924\u094d\u0924\u0940\u0938``.\n\nUse Cases\n------------------------------------\n1. Speech recognition pre-processing\n2. Language modeling data pre-processing\n\n\nInstallation\n------------------------------------\nTo install latest PyPI stable release\n\n```\npip install indic-num2words\n```\n\n\nUsage\n------------------------------------\n\nIn code there's only one function to use\n\n```python\n>>> from num_to_words import num_to_word\n>>> num_to_word(36, lang='hi')\n\u091b\u0924\u094d\u0924\u0940\u0938\n>>> num_to_word('\u096a\u096b', lang='hi')\n\u092a\u0948\u0902\u0924\u093e\u0932\u0940\u0938\n>>> num_to_word(\"35,43,57,730\", lang='hi')\n\u092a\u0948\u0902\u0924\u0940\u0938\u0915\u0930\u094b\u0921\u093c \u0924\u0948\u0902\u0924\u093e\u0932\u0940\u0938\u0932\u093e\u0916 \u0938\u0924\u094d\u0924\u093e\u0935\u0928\u0939\u091c\u093c\u093e\u0930 \u0938\u093e\u0924\u0938\u094c \u0924\u0940\u0938\n>>> num_to_word(795, lang='kn', separator='-')\n\u0c8f\u0cb3\u0cc1\u0ca8\u0cc2\u0cb0-\u0ca4\u0cca\u0c82\u0cac\u0ca4\u0ccd\u0ca4\u0cc8\u0ca6\u0cc1\n>>> num_to_word(545589, lang='en', separator=', ', combiner='-')\nfive-lakh, forty-five-thousand, five-hundred, eighty-nine\n```\n\n\n\nThe module currently supports the following languages:\n\n* ``en`` (English-India)\n* ``hi`` (Hindi)\n* ``gu`` (Gujarati)\n* ``mr`` (Marathi)\n* ``bn`` (Bengali)\n* ``te`` (Telugu)\n* ``ta`` (Tamil)\n* ``kn`` (Kannada)\n* ``or`` (Oriya)\n* ``pa`` (Punjabi)\n\n\n\nWhat's next\n-----------\n\nAdd Support for following Languages\n\n* Malayalam\n* Urdu\n* Assamese\n\ncheck utils/constants.py to add support for any indian languages., it's pretty easy.\n\n``Shout out if you want to help :)``\n",
"bugtrack_url": null,
"license": "Apache License",
"summary": "Package to convert numbers to words with support of multiple indian languages.",
"version": "1.2.1",
"project_urls": {
"Homepage": "https://github.com/sutariyaraj/indic-num2words/",
"Source": "https://github.com/sutariyaraj/indic-num2words/",
"Tracker": "https://github.com/sutariyaraj/indic-num2words/issues"
},
"split_keywords": [
"python",
" indic",
" languages",
" text to speech",
" tts",
" setup.py"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "56cc140a4c1a8e3edd9a05633404851423f05b9e90dc98221504608be7099d40",
"md5": "b3c817f7f71f513413193a8b4ea9fbce",
"sha256": "7b1581ad210151029707dc0e1cc133cdeec4b9c536c346811172d4b9b1177f3b"
},
"downloads": -1,
"filename": "indic_num2words-1.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b3c817f7f71f513413193a8b4ea9fbce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 16132,
"upload_time": "2024-04-16T02:07:17",
"upload_time_iso_8601": "2024-04-16T02:07:17.420988Z",
"url": "https://files.pythonhosted.org/packages/56/cc/140a4c1a8e3edd9a05633404851423f05b9e90dc98221504608be7099d40/indic_num2words-1.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1c852cee418a428198ec247d32f8b36431d005011089efdbd331d0f82a3aaadb",
"md5": "38cb77385ec6b2d060c43e969dacd6e1",
"sha256": "15e8192e3c4cb2bd7ad2b245af5c6a4d0f87b4fb9dabc2a9a2e1d92465f2d4a8"
},
"downloads": -1,
"filename": "indic_num2words-1.2.1.tar.gz",
"has_sig": false,
"md5_digest": "38cb77385ec6b2d060c43e969dacd6e1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 16323,
"upload_time": "2024-04-16T02:07:18",
"upload_time_iso_8601": "2024-04-16T02:07:18.457998Z",
"url": "https://files.pythonhosted.org/packages/1c/85/2cee418a428198ec247d32f8b36431d005011089efdbd331d0f82a3aaadb/indic_num2words-1.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-16 02:07:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sutariyaraj",
"github_project": "indic-num2words",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "indic-num2words"
}