Created
January 10, 2020 07:19
-
-
Save mohdsanadzakirizvi/72d0532617ca10e0835ac78712ff3dfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from indicnlp.transliterate.unicode_transliterate import ItransTransliterator | |
input_text='आज मौसम अच्छा है। इसलिए हम आज खेल सकते हैं!' | |
# Transliterate Hindi to Roman | |
print(ItransTransliterator.to_itrans(input_text, 'hi')) |
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
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.
hello , i also faced same issue. you can check here ,this worked for me:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not working