pyLDAvis基于gensim的LDA模型可视化
import gensimfrom gensim import modelsimport pyLDAvis.gensimdef lda_vis(): dictionary = gensim.corpora.Dictionary.load('lda.dict') corpus = gensim.corpora.MmCorpus('lda.mm') lda = mod
原创
2017-09-05 14:58:03 ·
11701 阅读 ·
20 评论