我想让LDA模型的主题一致。假设我有两个带有一包单词的LDA模型,第二个带有一包短语。我如何才能获得这两个模型的一致性,然后在一致性的基础上进行比较?
对于两个单独的模型,您可以单独检查一致性。您应该发布一些代码,但这是如何检查一致性:
# 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我希望这有帮助