While running a Python script using NLTK I got this:
Traceback (most recent call last):
File \"cpicklesave.py\", line 56, in
pos = nltk.
Install all nltk resources in one line:
python3 -c "import nltk; nltk.download('all')"
the data will be saved at ~/nltk_data
You can also substitute "all" for "averaged_perceptron_tagger" to install only this module.
Sometimes even by writing
nltk.download('module_name')
, it does not get downloaded. At those times, you can open python in interactive mode and then download by using nltk.download('module_name')
.