louismullie / treat

Natural language processing framework for Ruby.
Other
1.36k stars 128 forks source link

edu.stanford.nlp.io.RuntimeIOException during :parse #28

Closed darkphantum closed 11 years ago

darkphantum commented 11 years ago

I am getting an exception when I do

  para = Paragraph meta.text_summary
  p_text = para.do(:segment, :parse)  #error on :parse, :segment works fine

I have tried setting the path to english-left3words-distsim.tagger in the classpath env variable. That did not help

Error: edu.stanford.nlp.io.RuntimeIOException: ERROR: cannot find properties file "{pos.model=/home/varun/.rvm/gems/ruby-1.9.3-p286@global/gems/treat-1.2.0/lib/treat/../../models/stanford/taggers/english-left3words-distsim.tagger, parser.model=/home/varun/.rvm/gems/ruby-1.9.3-p286@global/gems/treat-1.2.0/lib/treat/../../models/stanford/grammar/englishPCFG.ser.gz, annotators=tokenize, ssplit, pos, lemma, parse}" in the classpath!

darkphantum commented 11 years ago

The problem was with JAVA_HOME pointing to java 7 instead of 6

louismullie commented 11 years ago

Sweet, I'm sure that will be useful to someone else in the future. Thanks for reporting!