Package nltk_lite :: Package draw :: Module dispersion
[hide private]
[frames] | no frames]

Module dispersion

source code

A utility for displaying lexical dispersion.

Functions [hide private]
 
plot(text, words, rowheight=15, rowwidth=800)
Generate a lexical dispersion plot.
source code
Function Details [hide private]

plot(text, words, rowheight=15, rowwidth=800)

source code 

Generate a lexical dispersion plot.

Parameters:
  • text (list or enum of str) - The source text
  • words (list of str) - The target words
  • rowheight (int) - Pixel height of a row
  • rowwidth (int) - Pixel width of a row