indic_nlp_library
indic_nlp_library copied to clipboard
Issue in Romanization
Sir i tried the code pasted below for romanising the hindi script. But when i run the code the script is not getting romanised. The output that I get is ाजान. Please let me know how can i get the proper romanised script.
from indicnlp.transliterate.unicode_transliterate import ItransTransliterator
input_text='राजस्थान' #input_text='ஆசிரியர்கள்' lang='hi'
print(ItransTransliterator.to_itrans(input_text,lang))
I am also facing the same issue.
I also have the same issue.
INDIC_NLP_RESOURCES needs to set for this to work
$ python3
Python 3.9.5 (default, May 11 2021, 08:20:37)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> INDIC_NLP_LIB_HOME='/home/axlolotl/git/indic_nlp_library'
>>> INDIC_NLP_RESOURCES='/home/axlolotl/git/indic_nlp_resources/'
>>> from indicnlp import common
>>> common.set_resources_path(INDIC_NLP_RESOURCES)
>>> from indicnlp import loader
>>> loader.load()
>>> from indicnlp.transliterate.unicode_transliterate import ItransTransliterator
>>> input_text='राजस्थान'
>>> lang='hi'
>>> print(ItransTransliterator.to_itrans(input_text,lang))
raajasthaana
Thank you. But this is creating the error "AttributeError: 'DataFrame' object has no attribute 'ix'" at loader.load(). Can you please help
What is the version of pandas that you are using?
It is 1.0.1