This is my first mailing to the group.
Alright, I think I might be able to help as I ran into a similar problem when I first tried to use .plot()
My guess is you might have multiple versions of something installed and your path is not pointing nltk to the right place.
This is what worked for me...
First, make sure that you have numpy, matplotlib, and their dependencies up-to-date on your machine.
If you're using
pip try this using this command at the Unix terminal:
sudo pip install numpy --upgrade
just replace numpy with the name of the other packages you need to upgrade.
Since you're doing this housekeeping, you might want to upgrade nltk at the end of this process.
Now that that's taken care of...
1. Open up IDLE or
iPython (you can do this from the terminal, if you want).
2. At the interpreter prompt, import the following:
3. Now for the moment of truth. Try something simple like:
FreqDist(text3).plot(20)
Did it work?
You can try adding cululative=True, changing 20 to some other number, and switching the argument for FreqDist.
Hope that helps,
--Gus