Gensim mallet CalledProcessError: returned non-zero exit status

后端 未结 5 1564
忘掉有多难
忘掉有多难 2021-01-21 01:53

I\'m getting an error while trying to access gensims mallet in jupyter notebooks. I have the specified file \'mallet\' in the same folder as my notebook, but cant seem to acces

5条回答
  •  执笔经年
    2021-01-21 02:23

    For me, this was not an import or a path problem.

    I spent hours trying to solve it. Tried this solution and nothing worked.

    Looking to a previous sucessfull call I made to LDA Mallet, I noticed some parameters were not being set, then I made it like this:

    gensim.models.wrappers.LdaMallet(mallet_path=mallet_path, corpus=corpus, num_topics=num_topics, id2word=id2word, prefix='temp_file_', workers=4)

    I really hope it helps you. Finding a solution to this problem was a pain.

提交回复
热议问题