I am a beginner in Python and NLTK. I am trying to run the following code from a tutorial:
from nltk.corpus import gutenberg
from nltk import FreqDist
fd =
Some of the features have been deprecated.
The code in question does work on version nltk 2.0.4
https://pypi.python.org/pypi/nltk/2.0.4
To install version 2.0.4 follow:
wget https://pypi.python.org/packages/source/n/nltk/nltk-2.0.4.zip#md5=cbd04d8635f1358a69a38c4774be029c
7z x nltk-2.0.4.zip
cd nltk-2.0.4/
python setup.py install
To check which version is installed run the following:
pip search nltk