nltk.ConditionalFreqDist.plot

ConditionalFreqDist.plot(*args, **kwargs)[source]

Plot the given samples from the conditional frequency distribution. For a cumulative plot, specify cumulative=True. (Requires Matplotlib to be installed.)

Parameters:
  • samples (list) – The samples to plot
  • title (str) – The title for the graph
  • conditions (list) – The conditions to plot (default is all)