Metadata-Version: 2.1
Name: telugu-words-numbers
Version: 0.0.6
Summary: Telugu words to numbers conversion
Home-page: https://github.com/Sandeep-Panchal/telugu-word-to-number-conversion/tree/main
Author: Sandeep Panchal
Author-email: sandeep.panchal545@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/Sandeep-Panchal/telugu-word-to-number-conversion/issues
Keywords: telugu,words,numbers,conversion,words to number,words to number conversion,telugu words number conversion
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: text2digits
Requires-Dist: numpy

## 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

```

from telugu_words_numbers import TeluguWordsToNumber

# creating and object of the class TeluguWordsToNum

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:  60.0

Original Text:  దీపిక కి అరవై పంపండి

Converted Text:  దీపిక కి 60 పంపండి

```

### Usage for multiple text conversion

```

from telugu_words_numbers import TeluguWordsToNumber

# creating and object of the class TeluguWordsToNum

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:  60.0

Original Text:  దీపిక కి అరవై పంపండి

Converted Text:  దీపిక కి 60 పంపండి

-------------------- 

Number:  700.0

Original Text:  భరత్ కి ఏడు వందలు పంపు

Converted Text:  భరత్ కి 700 పంపు

```

