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

Module dispersion

source code

A utility for displaying lexical dispersion.

Functions [hide private]
 
dispersion_plot(text, words)
Generate a lexical dispersion plot.
source code
Function Details [hide private]

dispersion_plot(text, words)

source code 

Generate a lexical dispersion plot.

Parameters:
  • text (list or enum of str) - The source text
  • words (list of str) - The target words