Nisar
Nisar

Reputation: 888

nltk_contrib for python latest version (python version > 3)

I have installed python 3.5 and NLTK. Also, I have installed the nltk_contrib library from https://github.com/nltk/nltk_contrib which is not supporting to the latest version of python. The error is that the library written for older version. So, the library has print without parenthesis which will not support to the latest version of Python.

Is there any latest version nltk_contrib without down grade the python?

Thanks in advance.

Upvotes: 0

Views: 455

Answers (1)

Vikash Singh
Vikash Singh

Reputation: 14011

nltk contrib has not been ported to python 3 yet.

See this answer for more details:

How to install nltk_contrib in Anaconda

You need to figure out which part of the code you need for python 3 and either port it yourself.

Or set up a virtualenv or and env for anaconda with python 2.7 and use it there.

http://conda.pydata.org/docs/using/envs.html

Upvotes: 1

Related Questions