gensim.models.LdaModel.top_topics

LdaModel.top_topics(corpus, num_words=20)[source]

Calculate the Umass topic coherence for each topic. Algorithm from Mimno, Wallach, Talley, Leenders, McCallum: Optimizing Semantic Coherence in Topic Models, CEMNLP 2011.