【发布时间】:2018-05-30 14:34:49
【问题描述】:
我目前正在尝试使用 gensim topiccoherencemodel 评估我的主题模型:
from gensim.models.coherencemodel import CoherenceModel
cm_u_mass = CoherenceModel(model = model1, corpus = corpus1, coherence = 'u_mass')
coherence_u_mass = cm_u_mass.get_coherence()
print('\nCoherence Score: ', coherence_u_mass)
输出只是负值。它是否正确?任何人都可以提供一个公式或 u_mass 的工作原理吗?
【问题讨论】:
标签: python-3.x gensim evaluation topic-modeling