【发布时间】:2020-10-18 13:50:04
【问题描述】:
我在笔记本上写了 LDA 模型。 我正在尝试用槌子包裹我的 gensim LDA 模型,得到以下错误:
CalledProcessError: Command '../input/mymallet/mallet-2.0.8/bin/mallet import-file --preserve-case --keep-sequence --remove-stopwords --token-regex "\S+" --input /tmp/fbcc4b_corpus.txt --output /tmp/fbcc4b_corpus.mallet' 返回非零退出状态 126。
由于第二行引发的错误:
mallet_path = '../input/mymallet/mallet-2.0.8/bin/mallet' # update this path
ldamallet = gensim.models.wrappers.LdaMallet(mallet_path, corpus=corpus, num_topics=20, id2word=id2word)
路径正确。
试过这个解决方案:Gensim mallet CalledProcessError: returned non-zero exit status
对我没用..
【问题讨论】: