Sorry about that. I guess we'll need to fail silently when packages
are missing. Hmmm...
Here's a way to get rid of the warning. After importing nltk, type
"nltk.app.__path__" to find the location of the NLTK applications
folder. Find that folder on your hard drive and edit the file
"__init__.py". Where you see:
try:
import pylab
except ImportError:
import warnings
warnings.warn("nltk.app.wordfreq not loaded "
"(requires the pylab library).")
Replace the last 3 lines with "pass", i.e.:
try:
import pylab
except ImportError:
pass
Take care to get the indentation right.
We'll fix this for the next release.
-Steven Bird