【发布时间】:2017-07-06 12:04:44
【问题描述】:
我有 LDA 模型和文档主题概率。
# build the model on the corpus
ldam = LdaModel(corpus=corpus, num_topics=20, id2word=dictionary)
# get the document-topic probabilities
theta, _ = ldam.inference(corpus)
我还需要所有主题的词分布,即主题词概率矩阵。有没有办法提取这些信息?
谢谢!
【问题讨论】:
标签: python gensim lda topic-modeling