indic_nlp_library icon indicating copy to clipboard operation
indic_nlp_library copied to clipboard

Issue in Romanization

Open Sreelakshmi-k opened this issue 4 years ago • 6 comments

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))

Sreelakshmi-k avatar Jan 05 '21 11:01 Sreelakshmi-k

I am also facing the same issue.

talent404 avatar Mar 24 '21 18:03 talent404

I also have the same issue.

SimengSun avatar Jun 14 '21 14:06 SimengSun

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

anilkumar911 avatar Sep 03 '21 12:09 anilkumar911

Thank you. But this is creating the error "AttributeError: 'DataFrame' object has no attribute 'ix'" at loader.load(). Can you please help

Sreelakshmi-k avatar Sep 07 '21 13:09 Sreelakshmi-k

What is the version of pandas that you are using?

anoopkunchukuttan avatar Sep 07 '21 15:09 anoopkunchukuttan

It is 1.0.1

Sreelakshmi-k avatar Sep 07 '21 15:09 Sreelakshmi-k