Nil*_*ter 3 evaluation python-3.x gensim topic-modeling
我目前正在尝试使用 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)
Run Code Online (Sandbox Code Playgroud)
输出只是负值。这样对吗?任何人都可以提供一个公式或 u_mass 是如何工作的吗?
| 归档时间: |
|
| 查看次数: |
2997 次 |
| 最近记录: |