【发布时间】:2019-06-22 03:33:15
【问题描述】:
我是 LDA 的新手,当我使用 gensim CoherenceModel 计算我的 LDA 模型的相干性分数时,运行需要很长时间。但是,训练部分相对较快,而且在合理的时间内。我想知道这是否是因为我的数据大小(大约 250000 长文本),有什么方法可以加快这个过程吗?谢谢
这是我的代码,和教程一模一样
from gensim.models import CoherenceModel
coherence_model_lda = CoherenceModel(model=lda_model_tfidf, texts=LDA_, dictionary=dictionary, coherence='c_v')
coherence_lda = coherence_model_lda.get_coherence()
print('\nCoherence Score: ', coherence_lda)
【问题讨论】:
-
嗨,欢迎来到堆栈溢出。显示您的问题的最小(代码)示例。