如何获得两个模型的主题一致性得分,然后用它进行比较?

问题描述 投票:0回答:1

我想让LDA模型的主题一致。假设我有两个带有一包单词的LDA模型,第二个带有一包短语。我如何才能获得这两个模型的一致性,然后在一致性的基础上进行比较?

lda topic-modeling
1个回答
0
投票

对于两个单独的模型,您可以单独检查一致性。您应该发布一些代码,但这是如何检查一致性:

# 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)

如果你想要比较检查肘方法以优化一致性:17我希望这有帮助

© www.soinside.com 2019 - 2024. All rights reserved.