Skip to main content

Telugu words to numbers conversion

Project description

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 పంపు

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

telugu_words_numbers-0.0.6.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

telugu_words_numbers-0.0.6-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file telugu_words_numbers-0.0.6.tar.gz.

File metadata

  • Download URL: telugu_words_numbers-0.0.6.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for telugu_words_numbers-0.0.6.tar.gz
Algorithm Hash digest
SHA256 50d984f1d2746e5d7c5c792747fbdd5a77d636cfa707e796a283b03939f36973
MD5 1c1a06f741b7e8e76ba8775a853eed60
BLAKE2b-256 f314a87e105abebbc6e8bfbbec9e4953f1ada3f83c439244b8f0a3c733262cc6

See more details on using hashes here.

Provenance

File details

Details for the file telugu_words_numbers-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: telugu_words_numbers-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for telugu_words_numbers-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6d721ce5142f3c769180a13590d28000494bda30993d32fd517ad39939ed17ef
MD5 f6841d7439f059c56d10c5138657faaf
BLAKE2b-256 4d3748aee609ba165e30db5426535edc94cdf4f9268ec2cd1799d83c4ff5b873

See more details on using hashes here.

Provenance

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