Skip to content

Instantly share code, notes, and snippets.

@mohdsanadzakirizvi
Created January 10, 2020 07:10
Show Gist options
  • Save mohdsanadzakirizvi/b3f2246d8a3a56c3d9fa2a04be17aba2 to your computer and use it in GitHub Desktop.
Save mohdsanadzakirizvi/b3f2246d8a3a56c3d9fa2a04be17aba2 to your computer and use it in GitHub Desktop.
from indicnlp.transliterate.unicode_transliterate import UnicodeIndicTransliterator
# Input text "Today the weather is good. Sun is bright and there are no signs of rain. Hence we can play today."
input_text='आज मौसम अच्छा है। सूरज उज्ज्वल है और बारिश के कोई संकेत नहीं हैं। इसलिए हम आज खेल सकते हैं!'
# Transliterate from Hindi to Telugu
print(UnicodeIndicTransliterator.transliterate(input_text,"hi","te"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment