nltk.TextCollection.dispersion_plot

TextCollection.dispersion_plot(words)

Produce a plot showing the distribution of the words through the text. Requires pylab to be installed.

Parameters:words (list(str)) – The words to be plotted
Seealso:nltk.draw.dispersion_plot()