nltk.Text.dispersion_plot

Text.dispersion_plot(words)[source]

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()