anoopkunchukuttan / indic_nlp_library

Resources and tools for Indian language Natural Language Processing
http://anoopkunchukuttan.github.io/indic_nlp_library/
MIT License
549 stars 160 forks source link

Issue with Urdu word segmenter #6

Closed patelrajnath closed 1 year ago

patelrajnath commented 8 years ago

Hi,

I am trying to use word segmentation for Urdu, but getting following error-

Traceback (most recent call last): File "/home/raj/smt/decoder/indic_nlp_library/src/indicnlp/morph/unsupervised_morph.py", line 136, in analyzer=UnsupervisedMorphAnalyzer(language,add_marker) File "/home/raj/smt/decoder/indic_nlp_library/src/indicnlp/morph/unsupervised_morph.py", line 53, in init self._script_range_pat=ur'^[{}-{}]+$'.format(unichr(langinfo.SCRIPT_RANGES[lang][0]),unichr(langinfo.SCRIPT_RANGES[lang][1]))

KeyError: 'ur'

Kindly check for the same. Thank you.

anoopkunchukuttan commented 1 year ago

Urdu is now supported