topik.visualizers package¶
Subpackages¶
Submodules¶
topik.visualizers.pyldavis module¶
topik.visualizers.termite_plot module¶
-
topik.visualizers.termite_plot.
termite
(modeled_corpus, plot_title='Termite plot', topn=15)[source]¶ A Bokeh Termite Visualization for LDA results analysis.
Parameters: input_file : str or pandas DataFrame
A pandas dataframe from a topik model get_termite_data() containing columns “word”, “topic” and “weight”. May also be a string, in which case the string is a filename of a csv file with the above columns.
title : str
The title for your termite plot
Examples
>>> plot = termite(test_model_output, plot_title="My model results", topn=5)