## Telugu Number-Words To Numbers Conversion
### Overview
- The Telugu Number-Words to Numbers Conversion package is a Python library that enables developers to convert numerical representations written in Telugu language text (using words) into their equivalent numerical values.
### Features
- Convert Telugu number-words to numerical values.
- Supports a wide range of Telugu numerical representations.
### Create a virtual environment if require with the python version 3.8 or more
```
conda create -n telugu_num_env python=3.8
# Replace "telugu_num_env" with other name according to you
```
### Supporting packages to be installed (Additional packages can be installed if require)
```
text2digits
numpy
```
### Installation with `pip'
```
# From CMD terminal
pip install telugu-words-numbers
# From IPYNB notebook
!pip install telugu-words-numbers
```
### Usage for single text conversion
```
# Import and create an instance of the class TeluguWordsToNumber
from telugu_words_numbers import TeluguWordsToNumber
converter = TeluguWordsToNumber()
text = """
చేతిలో పదివేల ఐదువందల రూపాయలతో ఐదుగురు స్నేహితులున్నారు.
వారు హోటల్కి వెళ్లి ఏడు వందల ఎనభై తొమ్మిది రూపాయలు మాత్రమే ఖర్చు చేశారు.
మిగిలిన రెండు వందల పదకొండు వారు తిరిగి ఇంటికి వెళ్లేందుకు ఖర్చు చేశారు.
"""
number, converted_text = converter.word_number_conversion(text)
print('Number: ', number)
print('Original Text: ', text)
print('Converted Text: ', converted_text)
```
### Out of single text conversion
```
Number: ['10500', '789', '211']
Original Text:
చేతిలో పదివేల ఐదువందల రూపాయలతో ఐదుగురు స్నేహితులున్నారు.
వారు హోటల్కి వెళ్లి ఏడు వందల ఎనభై తొమ్మిది రూపాయలు మాత్రమే ఖర్చు చేశారు.
మిగిలిన రెండు వందల పదకొండు వారు తిరిగి ఇంటికి వెళ్లేందుకు ఖర్చు చేశారు.
Converted Text:
చేతిలో 10500 రూపాయలతో ఐదుగురు స్నేహితులున్నారు.
వారు హోటల్కి వెళ్లి 789 రూపాయలు మాత్రమే ఖర్చు చేశారు.
మిగిలిన 211 వారు తిరిగి ఇంటికి వెళ్లేందుకు ఖర్చు చేశారు.
```
### Usage for multiple text conversion
```
# Import and create an instance of the class TeluguWordsToNumber
from telugu_words_numbers import TeluguWordsToNumber
converter = TeluguWordsToNumber()
texts = [
"నూట పదమూడు మామిడి పండ్లలో ఒక వ్యక్తి డెబ్బై ఏడు మామిడి పండ్లను కొన్నాడు.",
"వెయ్యి యాభై ఐదు రూపాయలలో ఒక వ్యక్తి తొమ్మిది వందల తొంభై రూపాయలు మాత్రమే ఖర్చు చేశాడు."
]
for text in texts:
number, converted_text = converter.word_number_conversion(text)
print('Number: ', number)
print('Original Text: ', text)
print('Converted Text: ', converted_text)
print('-'*20, '\n')
```
### Output of multiple text conversion
```
Number: ['113', '1', '77']
Original Text: నూట పదమూడు మామిడి పండ్లలో ఒక వ్యక్తి డెబ్బై ఏడు మామిడి పండ్లను కొన్నాడు.
Converted Text: 113 మామిడి పండ్లలో 1 వ్యక్తి 77 మామిడి పండ్లను కొన్నాడు.
--------------------
Number: ['1055', '1', '990']
Original Text: వెయ్యి యాభై ఐదు రూపాయలలో ఒక వ్యక్తి తొమ్మిది వందల తొంభై రూపాయలు మాత్రమే ఖర్చు చేశాడు.
Converted Text: 1055 రూపాయలలో 1 వ్యక్తి 990 రూపాయలు మాత్రమే ఖర్చు చేశాడు.
--------------------
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Sandeep-Panchal/telugu-word-to-number-conversion/tree/main",
"name": "telugu-words-numbers",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "telugu, words, numbers, conversion, words to number, words to number conversion, telugu words number conversion",
"author": "Sandeep Panchal",
"author_email": "sandeep.panchal545@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/94/bc/d010e2dacd2ac1e7347a1e20e203ab601835223463f53ca85cdf73597ef7/telugu_words_numbers-0.0.8.tar.gz",
"platform": null,
"description": "## Telugu Number-Words To Numbers Conversion\r\n\r\n### Overview\r\n\r\n- The Telugu Number-Words to Numbers Conversion package is a Python library that enables developers to convert numerical representations written in Telugu language text (using words) into their equivalent numerical values.\r\n\r\n### Features\r\n\r\n- Convert Telugu number-words to numerical values.\r\n\r\n- Supports a wide range of Telugu numerical representations.\r\n\r\n### Create a virtual environment if require with the python version 3.8 or more\r\n\r\n```\r\n\r\nconda create -n telugu_num_env python=3.8\r\n\r\n# Replace \"telugu_num_env\" with other name according to you\r\n\r\n```\r\n\r\n### Supporting packages to be installed (Additional packages can be installed if require)\r\n\r\n```\r\n\r\ntext2digits\r\n\r\nnumpy\r\n\r\n```\r\n\r\n### Installation with `pip'\r\n\r\n```\r\n\r\n# From CMD terminal\r\n\r\npip install telugu-words-numbers\r\n\r\n# From IPYNB notebook\r\n\r\n!pip install telugu-words-numbers\r\n\r\n```\r\n\r\n### Usage for single text conversion\r\n\r\n```\r\n\r\n# Import and create an instance of the class TeluguWordsToNumber\r\n\r\nfrom telugu_words_numbers import TeluguWordsToNumber\r\n\r\nconverter = TeluguWordsToNumber()\r\n\r\ntext = \"\"\"\r\n\r\n \u0c1a\u0c47\u0c24\u0c3f\u0c32\u0c4b \u0c2a\u0c26\u0c3f\u0c35\u0c47\u0c32 \u0c10\u0c26\u0c41\u0c35\u0c02\u0c26\u0c32 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c24\u0c4b \u0c10\u0c26\u0c41\u0c17\u0c41\u0c30\u0c41 \u0c38\u0c4d\u0c28\u0c47\u0c39\u0c3f\u0c24\u0c41\u0c32\u0c41\u0c28\u0c4d\u0c28\u0c3e\u0c30\u0c41.\r\n\r\n \u0c35\u0c3e\u0c30\u0c41 \u0c39\u0c4b\u0c1f\u0c32\u0c4d\u200c\u0c15\u0c3f \u0c35\u0c46\u0c33\u0c4d\u0c32\u0c3f \u0c0f\u0c21\u0c41 \u0c35\u0c02\u0c26\u0c32 \u0c0e\u0c28\u0c2d\u0c48 \u0c24\u0c4a\u0c2e\u0c4d\u0c2e\u0c3f\u0c26\u0c3f \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c41 \u0c2e\u0c3e\u0c24\u0c4d\u0c30\u0c2e\u0c47 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c30\u0c41.\r\n\r\n \u0c2e\u0c3f\u0c17\u0c3f\u0c32\u0c3f\u0c28 \u0c30\u0c46\u0c02\u0c21\u0c41 \u0c35\u0c02\u0c26\u0c32 \u0c2a\u0c26\u0c15\u0c4a\u0c02\u0c21\u0c41 \u0c35\u0c3e\u0c30\u0c41 \u0c24\u0c3f\u0c30\u0c3f\u0c17\u0c3f \u0c07\u0c02\u0c1f\u0c3f\u0c15\u0c3f \u0c35\u0c46\u0c33\u0c4d\u0c32\u0c47\u0c02\u0c26\u0c41\u0c15\u0c41 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c30\u0c41.\r\n\r\n \"\"\"\r\n\r\nnumber, converted_text = converter.word_number_conversion(text)\r\n\r\nprint('Number: ', number)\r\n\r\nprint('Original Text: ', text)\r\n\r\nprint('Converted Text: ', converted_text)\r\n\r\n```\r\n\r\n### Out of single text conversion\r\n\r\n```\r\n\r\nNumber: ['10500', '789', '211']\r\n\r\nOriginal Text:\r\n\r\n \u0c1a\u0c47\u0c24\u0c3f\u0c32\u0c4b \u0c2a\u0c26\u0c3f\u0c35\u0c47\u0c32 \u0c10\u0c26\u0c41\u0c35\u0c02\u0c26\u0c32 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c24\u0c4b \u0c10\u0c26\u0c41\u0c17\u0c41\u0c30\u0c41 \u0c38\u0c4d\u0c28\u0c47\u0c39\u0c3f\u0c24\u0c41\u0c32\u0c41\u0c28\u0c4d\u0c28\u0c3e\u0c30\u0c41.\r\n\r\n \u0c35\u0c3e\u0c30\u0c41 \u0c39\u0c4b\u0c1f\u0c32\u0c4d\u200c\u0c15\u0c3f \u0c35\u0c46\u0c33\u0c4d\u0c32\u0c3f \u0c0f\u0c21\u0c41 \u0c35\u0c02\u0c26\u0c32 \u0c0e\u0c28\u0c2d\u0c48 \u0c24\u0c4a\u0c2e\u0c4d\u0c2e\u0c3f\u0c26\u0c3f \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c41 \u0c2e\u0c3e\u0c24\u0c4d\u0c30\u0c2e\u0c47 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c30\u0c41.\r\n\r\n \u0c2e\u0c3f\u0c17\u0c3f\u0c32\u0c3f\u0c28 \u0c30\u0c46\u0c02\u0c21\u0c41 \u0c35\u0c02\u0c26\u0c32 \u0c2a\u0c26\u0c15\u0c4a\u0c02\u0c21\u0c41 \u0c35\u0c3e\u0c30\u0c41 \u0c24\u0c3f\u0c30\u0c3f\u0c17\u0c3f \u0c07\u0c02\u0c1f\u0c3f\u0c15\u0c3f \u0c35\u0c46\u0c33\u0c4d\u0c32\u0c47\u0c02\u0c26\u0c41\u0c15\u0c41 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c30\u0c41. \r\n\r\nConverted Text:\r\n\r\n \u0c1a\u0c47\u0c24\u0c3f\u0c32\u0c4b 10500 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c24\u0c4b \u0c10\u0c26\u0c41\u0c17\u0c41\u0c30\u0c41 \u0c38\u0c4d\u0c28\u0c47\u0c39\u0c3f\u0c24\u0c41\u0c32\u0c41\u0c28\u0c4d\u0c28\u0c3e\u0c30\u0c41.\r\n\r\n \u0c35\u0c3e\u0c30\u0c41 \u0c39\u0c4b\u0c1f\u0c32\u0c4d\u200c\u0c15\u0c3f \u0c35\u0c46\u0c33\u0c4d\u0c32\u0c3f 789 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c41 \u0c2e\u0c3e\u0c24\u0c4d\u0c30\u0c2e\u0c47 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c30\u0c41.\r\n\r\n \u0c2e\u0c3f\u0c17\u0c3f\u0c32\u0c3f\u0c28 211 \u0c35\u0c3e\u0c30\u0c41 \u0c24\u0c3f\u0c30\u0c3f\u0c17\u0c3f \u0c07\u0c02\u0c1f\u0c3f\u0c15\u0c3f \u0c35\u0c46\u0c33\u0c4d\u0c32\u0c47\u0c02\u0c26\u0c41\u0c15\u0c41 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c30\u0c41.\r\n\r\n```\r\n\r\n### Usage for multiple text conversion\r\n\r\n```\r\n\r\n# Import and create an instance of the class TeluguWordsToNumber\r\n\r\nfrom telugu_words_numbers import TeluguWordsToNumber\r\n\r\nconverter = TeluguWordsToNumber()\r\n\r\ntexts = [\r\n\r\n \"\u0c28\u0c42\u0c1f \u0c2a\u0c26\u0c2e\u0c42\u0c21\u0c41 \u0c2e\u0c3e\u0c2e\u0c3f\u0c21\u0c3f \u0c2a\u0c02\u0c21\u0c4d\u0c32\u0c32\u0c4b \u0c12\u0c15 \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f \u0c21\u0c46\u0c2c\u0c4d\u0c2c\u0c48 \u0c0f\u0c21\u0c41 \u0c2e\u0c3e\u0c2e\u0c3f\u0c21\u0c3f \u0c2a\u0c02\u0c21\u0c4d\u0c32\u0c28\u0c41 \u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3e\u0c21\u0c41.\",\r\n\r\n \"\u0c35\u0c46\u0c2f\u0c4d\u0c2f\u0c3f \u0c2f\u0c3e\u0c2d\u0c48 \u0c10\u0c26\u0c41 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c32\u0c4b \u0c12\u0c15 \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f \u0c24\u0c4a\u0c2e\u0c4d\u0c2e\u0c3f\u0c26\u0c3f \u0c35\u0c02\u0c26\u0c32 \u0c24\u0c4a\u0c02\u0c2d\u0c48 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c41 \u0c2e\u0c3e\u0c24\u0c4d\u0c30\u0c2e\u0c47 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c21\u0c41.\"\r\n\r\n ]\r\n\r\nfor text in texts:\r\n\r\n number, converted_text = converter.word_number_conversion(text)\r\n\r\n print('Number: ', number)\r\n\r\n print('Original Text: ', text)\r\n\r\n print('Converted Text: ', converted_text)\r\n\r\n print('-'*20, '\\n')\r\n\r\n```\r\n\r\n### Output of multiple text conversion\r\n\r\n```\r\n\r\nNumber: ['113', '1', '77']\r\n\r\nOriginal Text: \u0c28\u0c42\u0c1f \u0c2a\u0c26\u0c2e\u0c42\u0c21\u0c41 \u0c2e\u0c3e\u0c2e\u0c3f\u0c21\u0c3f \u0c2a\u0c02\u0c21\u0c4d\u0c32\u0c32\u0c4b \u0c12\u0c15 \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f \u0c21\u0c46\u0c2c\u0c4d\u0c2c\u0c48 \u0c0f\u0c21\u0c41 \u0c2e\u0c3e\u0c2e\u0c3f\u0c21\u0c3f \u0c2a\u0c02\u0c21\u0c4d\u0c32\u0c28\u0c41 \u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3e\u0c21\u0c41.\r\n\r\nConverted Text: 113 \u0c2e\u0c3e\u0c2e\u0c3f\u0c21\u0c3f \u0c2a\u0c02\u0c21\u0c4d\u0c32\u0c32\u0c4b 1 \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f 77 \u0c2e\u0c3e\u0c2e\u0c3f\u0c21\u0c3f \u0c2a\u0c02\u0c21\u0c4d\u0c32\u0c28\u0c41 \u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3e\u0c21\u0c41.\r\n\r\n--------------------\r\n\r\nNumber: ['1055', '1', '990']\r\n\r\nOriginal Text: \u0c35\u0c46\u0c2f\u0c4d\u0c2f\u0c3f \u0c2f\u0c3e\u0c2d\u0c48 \u0c10\u0c26\u0c41 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c32\u0c4b \u0c12\u0c15 \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f \u0c24\u0c4a\u0c2e\u0c4d\u0c2e\u0c3f\u0c26\u0c3f \u0c35\u0c02\u0c26\u0c32 \u0c24\u0c4a\u0c02\u0c2d\u0c48 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c41 \u0c2e\u0c3e\u0c24\u0c4d\u0c30\u0c2e\u0c47 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c21\u0c41.\r\n\r\nConverted Text: 1055 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c32\u0c4b 1 \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f 990 \u0c30\u0c42\u0c2a\u0c3e\u0c2f\u0c32\u0c41 \u0c2e\u0c3e\u0c24\u0c4d\u0c30\u0c2e\u0c47 \u0c16\u0c30\u0c4d\u0c1a\u0c41 \u0c1a\u0c47\u0c36\u0c3e\u0c21\u0c41.\r\n\r\n--------------------\r\n\r\n```\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Telugu words to numbers conversion",
"version": "0.0.8",
"project_urls": {
"Bug Tracker": "https://github.com/Sandeep-Panchal/telugu-word-to-number-conversion/issues",
"Homepage": "https://github.com/Sandeep-Panchal/telugu-word-to-number-conversion/tree/main"
},
"split_keywords": [
"telugu",
" words",
" numbers",
" conversion",
" words to number",
" words to number conversion",
" telugu words number conversion"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "475b55ec0aa2fc2e8653eeb9b5edbfd76f78c6fdee91910aeba0b3034ee4513f",
"md5": "90de47be65bfe2e967cf8b1d66b95183",
"sha256": "c668278d9ad1ff29d277005dd26ddf304531e6c74e226560b3f79678742a64cf"
},
"downloads": -1,
"filename": "telugu_words_numbers-0.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "90de47be65bfe2e967cf8b1d66b95183",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7293,
"upload_time": "2024-04-11T18:45:05",
"upload_time_iso_8601": "2024-04-11T18:45:05.019463Z",
"url": "https://files.pythonhosted.org/packages/47/5b/55ec0aa2fc2e8653eeb9b5edbfd76f78c6fdee91910aeba0b3034ee4513f/telugu_words_numbers-0.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "94bcd010e2dacd2ac1e7347a1e20e203ab601835223463f53ca85cdf73597ef7",
"md5": "af62749c69838ff3fb43c5dac89f7c53",
"sha256": "851aa85b2663213c6618ee6be9cb6f3380fa7a2073e6b9100b4d42287c5a0702"
},
"downloads": -1,
"filename": "telugu_words_numbers-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "af62749c69838ff3fb43c5dac89f7c53",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8385,
"upload_time": "2024-04-11T18:45:06",
"upload_time_iso_8601": "2024-04-11T18:45:06.831288Z",
"url": "https://files.pythonhosted.org/packages/94/bc/d010e2dacd2ac1e7347a1e20e203ab601835223463f53ca85cdf73597ef7/telugu_words_numbers-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-11 18:45:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Sandeep-Panchal",
"github_project": "telugu-word-to-number-conversion",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "text2digits",
"specs": []
},
{
"name": "numpy",
"specs": []
}
],
"lcname": "telugu-words-numbers"
}