【发布时间】:2023-09-28 15:37:01
【问题描述】:
我尝试评估我的动态主题模型。 该模型是使用 gensim 包装器生成的。 是否有任何可能的功能,例如与“正常”主题建模相同的困惑度或主题连贯性?
【问题讨论】:
标签: gensim evaluation lda
我尝试评估我的动态主题模型。 该模型是使用 gensim 包装器生成的。 是否有任何可能的功能,例如与“正常”主题建模相同的困惑度或主题连贯性?
【问题讨论】:
标签: gensim evaluation lda
是的,Gensim Wrapper 存在主题连贯性和困惑:
# Compute Coherence Score
coherence_model_ldamallet = CoherenceModel(model=ldamallet, texts=processed_docs, dictionary=dictionary, coherence='c_v')
coherence_ldamallet = coherence_model_ldamallet.get_coherence()
print('\nCoherence Score: ', coherence_ldamallet)
您可以查看这篇文章了解更多信息:14
我希望这会有所帮助:)
【讨论】: