Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.io.FileNotFoundException: /tmp/c80707_corpus.mallet (No such file or directory)
- at java.io.FileInputStream.open0(Native Method)
- at java.io.FileInputStream.open(FileInputStream.java:195)
- at java.io.FileInputStream.<init>(FileInputStream.java:138)
- at cc.mallet.types.InstanceList.load(InstanceList.java:787)
- at cc.mallet.classify.tui.Csv2Vectors.main(Csv2Vectors.java:131)
- Exception in thread "main" java.lang.IllegalArgumentException: Couldn't read InstanceList from file /tmp/c80707_corpus.mallet
- at cc.mallet.types.InstanceList.load(InstanceList.java:794)
- at cc.mallet.classify.tui.Csv2Vectors.main(Csv2Vectors.java:131)
- Traceback (most recent call last):
- File "lda.py", line 93, in <module>
- main()
- File "lda.py", line 79, in main
- df_topic_sents_keywords = format_topics_sentences(ldamodel=optimal_model_lda, corpus=corpus, texts=dataset)
- File "lda.py", line 20, in format_topics_sentences
- for i, row in enumerate(ldamodel[corpus]):
- File "/nfs/analyses/rapha_new/youtube-new_york_times/env/lib/python3.5/site-packages/gensim/models/wrappers/ldamallet.py", line 315, in __getitem__
- self.convert_input(bow, infer=True)
- File "/nfs/analyses/rapha_new/youtube-new_york_times/env/lib/python3.5/site-packages/gensim/models/wrappers/ldamallet.py", line 262, in convert_input
- check_output(args=cmd, shell=True)
- File "/nfs/analyses/rapha_new/youtube-new_york_times/env/lib/python3.5/site-packages/gensim/utils.py", line 1918, in check_output
- raise error
- subprocess.CalledProcessError: Command './mallet-2.0.8/bin/mallet import-file --preserve-case --keep-sequence --remove-stopwords --token-regex "\S+" --input /tmp/c80707_corpus.txt --output /tmp/c80707_corpus.mallet.infer --use-pipe-from /tmp/c80707_corpus.mallet' returned non-zero exit status 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement