aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.29k stars 337 forks source link

Point polyglot to polyglot_data #186

Closed matousek-martin closed 5 years ago

matousek-martin commented 5 years ago

How can I point polyglot to polyglot_data, that is not the default one (I want to move the files elsewhere other than home/user)?

I have googled and searched for hours without luck.

matousek-martin commented 5 years ago

I had to change polyglot_path in the load_resource function in init.py.

I advise against this, but it has worked for my specific use-case. Changing polyglot_path after importing directly in script didnt help for some reason.