Skip to content

Instantly share code, notes, and snippets.

@wandabwa2004
Created January 17, 2020 05:26
Show Gist options
  • Save wandabwa2004/952dc28c50a0b0cf97a2820ab907db53 to your computer and use it in GitHub Desktop.
Save wandabwa2004/952dc28c50a0b0cf97a2820ab907db53 to your computer and use it in GitHub Desktop.
#Training of LDA topic models on bi-grams for each of the subsets
lda_model_bigrams_q1 = gensim.models.LdaMulticore(bi_corpus_q1, num_topics=10, id2word=dictionary_bi_q1, passes=2, workers=10)
lda_model_bigrams_q2 = gensim.models.LdaMulticore(bi_corpus_q2, num_topics=10, id2word=dictionary_bi_q2, passes=2, workers=10)
lda_model_bigrams_q3 = gensim.models.LdaMulticore(bi_corpus_q3, num_topics=10, id2word=dictionary_bi_q3, passes=2, workers=10)
lda_model_bigrams_q4 = gensim.models.LdaMulticore(bi_corpus_q4, num_topics=10, id2word=dictionary_bi_q4, passes=2, workers=10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment