By default NLTK packages/data are saved in the nltk_data
directory.
First, you have to find where the directory might be:
>>> import nltk
>>> nltk.data.path
['/home/alvas/nltk_data', '/usr/share/nltk_data', '/usr/local/share/nltk_data', '/usr/lib/nltk_data', '/usr/local/lib/nltk_data']
Check the exact location of nltk_data
:
>>> import os
>>> next(p for p in nltk.data.path if os.path.exists(p))
'/home/alvas/nltk_data'
On linux, simply go to the directory on the command line:
$ cd /home/alvas/nltk_data/
$ ls
corpora grammars tokenizers
$ cd grammars/
$ ls
large_grammars large_grammars.zip
$ rm -rf large_grammars
$ rm large_grammars.zip