I am trying to implement the following code:
import os
os.environ.update({'MALLET_HOME':r'c:/mallet-2.0.8/'})
mallet_path = 'C:\\mallet-2.0.8\\bin\\mallet'
ldamallet = gensim.models.wrappers.LdaMallet(mallet_path, corpus=bow, num_topics=20, id2word=dictionary)
However, I keep getting this error:
CalledProcessError: Command 'C:\mallet-2.0.8\bin\mallet import-file --preserve-case --keep-sequence --remove-stopwords --token-regex "\S+" --input C:\Users\Joshua\AppData\Local\Temp\98094d_corpus.txt --output C:\Users\Joshua\AppData\Local\Temp\98094d_corpus.mallet' returned non-zero exit status 1.
I previously was able to execute this code on my laptop with the same directories yet it does not execute on my PC (where I am currently running python).
Could someone please let me know what I am doing wrong?