How do I plot the 50 least frequent words?
Maybe I am thinking too complicated. Here's the way I get the words:
distr = nltk.FreqDist(word for word in items)
words = distr .keys()
seldomwords = words [:50]
How do I plot this now?
With the plot
function of FreqDist
I get all or only the x most frequent words.
I tried something like:
distr .plot(:50)
But that's syntactically incorrect.