Slide 29
Slide 29 text
Gensim coherence api
All you need is a corpus and a set of words to find out how
coherent the set is.
goodcm = CoherenceModel(model=goodLdaModel, texts=texts,
dictionary=dictionary, coherence='c_v')
print goodcm.get_coherence()
0.552164532134
badcm = CoherenceModel(model=badLdaModel, texts=texts,
dictionary=dictionary, coherence='c_v')
print badcm.get_coherence()
0.5269189184