Telugu is a Dravidian language native to India. Inscriptions with Telugu words dating back to 400 BC to 100 BC have been discovered in Bhattiprolu in the Guntur district of Andhra Pradesh. Telugu literature can be traced back to the early 11th century period when Mahabharata was first translated to Telugu from Sanskrit by Nannaya. It flourished under the rule of the Vijayanagar empire, where Telugu was one of the empire’s official languages. (Source: Wikipedia)


The Telugu alphabet and digits are placed in cltk/corpus/telugu/

The digits are placed in a list NUMERALS with the digit the same as the list index (0-9). For example, the telugu digit for 4 can be accessed in this manner:

In [1]: from cltk.corpus.telugu.alphabet import NUMERALS
In [2]: NUMERALS[4]
Out[2]: '౪'

The vowels are places in a list VOWELS and can be accessed in this manner :

In [1]: from cltk.corpus.telugu.alphabet import VOWELS
In [2]: VOWELS
Out[2]: ['అ ','ఆ','ఇ','ఈ ','ఉ ','ఊ ','ఋ  ','ౠ  ','ఌ ','ౡ','ఎ','ఏ','ఐ','ఒ','ఓ','ఔ ','అం','అః']

The rest of the alphabets are CONSONANTS that can be accessed in a similar way.


Use CorpusImporter() or browse the CLTK GitHub organization (anything beginning with telugu_) to discover available Telugu corpora.

In [1]: from cltk.corpus.utils.importer import CorpusImporter

In [2]: c = CorpusImporter('telugu')

In [3]: c.list_corpora


This tool can help break up a sentence into smaller constituents i.e into words.

  In [1]: from cltk.tokenize.sentence import TokenizeSentence

  In [2]: tokenizer = TokenizeSentence('telugu')

  In [3]: sentence = "క్లేశభూర్యల్పసారాణి కర్మాణి విఫలాని వా దేహినాం విషయార్తానాం న తథైవార్పితం త్వయి"

  In [4]: telugu_text_tokenize = tokenizer.tokenize(sentence)

  In [5]: telugu_text_tokenize