python - gensim LDA 输出
问题描述
有人可以解释一下 gensim LDA 输出的每个元素的含义吗?例如,我有一个训练有素的 LDA,现在我想获得未见文档的主题分布。
other_texts = [['computer', 'time', 'graph'],
['survey', 'response', 'eps'],
['human', 'system', 'computer']]
id2word_unseen = corpora.Dictionary(other_texts) # словарь
corpus_word_freq_unseen = [id2word.doc2bow(text) for text in other_texts]
unseen_doc = corpus_word_freq_unseen[0]
vector = LDA[unseen_doc] # get topic probability distribution for a document
向量变量由
([(0, 0.020873228),
(1, 0.012368388),
(2, 0.029045772),
(3, 0.01218763),
(4, 0.8807166),
(5, 0.0141737955),
(6, 0.010576158),
(7, 0.020058472)],
[(2118, [4]), (9354, [4])],
[(2118, [(4, 0.99984014)]), (9354, [(4, 0.9996126)])])
第一个元素是分布,但我不明白其他元素的含义。谢谢!
解决方案
推荐阅读
- opencv - 是否有可能相同的代码使用openCV返回不同的结果?
- android - android.os.NetworkOnMainThreadException json requete post
- c# - C#,使用计时器触发不同的事件。
- footer - iText 7 - 最后一页的不同页脚 - PdfDictionary 中的空指针
- algorithm - Haskell中的CycleSort - 麻烦
- c# - 使用泛型类型构建查询表达式
- data-mining - R studio中的rand有效性测量
- wpf - 我正在寻找以窗口形式存在的 wpf 中的图形类
- list - 多程序列表理解
- bluetooth - 获取连接到蓝牙 HC-06 和 Arduino 的设备名称