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

unable to use indic_nlp_library #18

Closed riktimmondal closed 5 years ago

riktimmondal commented 5 years ago

Traceback (most recent call last): File "indic_nlp_library-master/src/indicnlp/tokenize/indic_tokenize.py", line 27, in from indicnlp.common import IndicNlpException ModuleNotFoundError: No module named 'indicnlp'

Even after exporting the path I am getting this error.

arcturusannamalai commented 5 years ago

You have to install the module @riktimmondal - try 'cd indic_nlp_library-master && python setup.py sdist build_and_install'

riktimmondal commented 5 years ago

python: can't open file 'setup.py': [Errno 2] No such file or directory There is no as such any setup.py file in the repository

arcturusannamalai commented 5 years ago

You can just set a environment variable $ export PYTHONPATH 'full/path/to/here/indic_nlp_library/src/' $ python -c 'import indic_nlp_library'

should work if you have BASH and Linux.

riktimmondal commented 5 years ago

Thanks issue has been resolved.