enlp.visualisation.freq_distribution.dist_plot_detailed

enlp.visualisation.freq_distribution.dist_plot_detailed(word_counts, log=False, ax=None)[source]

Frequency count of tokens in a SMALL Corpus (<50 unique tokens) with words on the x-axis

Parameters
word_countslist

sorted list of words and their respective frequency, can be obtained from nlp_distributions.count()

logbool

make y axis logarithmic [optional, default = False]

axmatplotlib.axes.Axis

Axis object for figure

Returns
figmatplotlib.figure.Figure

Figure object line plot of word counts

axmatplotlib.axes.Axis

Axis object for figure

Notes

If there are more than 50 unique tokens then the plot will be too busy and may crash your machine while computing