Skip to content

Instantly share code, notes, and snippets.

@mohdsanadzakirizvi
Created January 10, 2020 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohdsanadzakirizvi/72d0532617ca10e0835ac78712ff3dfd to your computer and use it in GitHub Desktop.
Save mohdsanadzakirizvi/72d0532617ca10e0835ac78712ff3dfd to your computer and use it in GitHub Desktop.
from indicnlp.transliterate.unicode_transliterate import ItransTransliterator
input_text='आज मौसम अच्छा है। इसलिए हम आज खेल सकते हैं!'
# Transliterate Hindi to Roman
print(ItransTransliterator.to_itrans(input_text, 'hi'))
@thejussk1999
Copy link

It is not working

@mohdsanadzakirizvi
Copy link
Author

Hi,

The above gist is part of a code that's used in this blog:

https://www.analyticsvidhya.com/blog/2020/01/3-important-nlp-libraries-indian-languages-python/

Please have a look to access the complete code

@Harshitharaj06
Copy link

from indicnlp.transliterate.unicode_transliterate import ItransTransliterator

input_text='आज मौसम अच्छा है। इसलिए हम आज खेल सकते हैं!'

Transliterate Hindi to Roman

print(ItransTransliterator.to_itrans(input_text, 'hi'))

the above code is not working getting the same hindi text not transliterated to english.

@Pankti99
Copy link

hello , i also faced same issue. you can check here ,this worked for me:

anoopkunchukuttan/indic_nlp_library#35 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment