Visualization#

For visualizing your topic models we recommend that you use topicwizard , which natively works with all sklearn-compatible topic models.

Install topicwizard from PyPI:

pip install topic-wizard

topicwizard can then visualize either your Pipeline or your individual model components.

import topicwizard

# Passing the whole pipeline
topicwizard.visualize(pipeline=pipeline, corpus=texts)

# Passing the individual components
topicwizard.visualize(vectorizer=vectorizer, topic_model=dmm, corpus=texts)
Topic visualization with topicwizard

For more information consult the documentation.