Created
January 17, 2020 11:51
-
-
Save wandabwa2004/8231792d944dec36a3c92f0d8ab3399b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyLDAvis | |
import pyLDAvis.gensim | |
pyLDAvis.enable_notebook() | |
visualization_q1 = pyLDAvis.gensim.prepare(lda_model_bigrams_q1, bi_corpus_q1, dictionary_bi_q1, mds='mmds') #prepares the model, related corpus and dictionary. | |
visualization_q1 #Visualizes the plot | |
#To save the visualization | |
pyLDAvis.save_html(visualization_q1, 'lda_q1.html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment