Advertisement
djdracula

Untitled

Mar 27th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. java.io.FileNotFoundException: /tmp/c80707_corpus.mallet (No such file or directory)
  2. at java.io.FileInputStream.open0(Native Method)
  3. at java.io.FileInputStream.open(FileInputStream.java:195)
  4. at java.io.FileInputStream.<init>(FileInputStream.java:138)
  5. at cc.mallet.types.InstanceList.load(InstanceList.java:787)
  6. at cc.mallet.classify.tui.Csv2Vectors.main(Csv2Vectors.java:131)
  7. Exception in thread "main" java.lang.IllegalArgumentException: Couldn't read InstanceList from file /tmp/c80707_corpus.mallet
  8. at cc.mallet.types.InstanceList.load(InstanceList.java:794)
  9. at cc.mallet.classify.tui.Csv2Vectors.main(Csv2Vectors.java:131)
  10. Traceback (most recent call last):
  11. File "lda.py", line 93, in <module>
  12. main()
  13. File "lda.py", line 79, in main
  14. df_topic_sents_keywords = format_topics_sentences(ldamodel=optimal_model_lda, corpus=corpus, texts=dataset)
  15. File "lda.py", line 20, in format_topics_sentences
  16. for i, row in enumerate(ldamodel[corpus]):
  17. File "/nfs/analyses/rapha_new/youtube-new_york_times/env/lib/python3.5/site-packages/gensim/models/wrappers/ldamallet.py", line 315, in __getitem__
  18. self.convert_input(bow, infer=True)
  19. 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
  20. check_output(args=cmd, shell=True)
  21. File "/nfs/analyses/rapha_new/youtube-new_york_times/env/lib/python3.5/site-packages/gensim/utils.py", line 1918, in check_output
  22. raise error
  23. 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