louismullie / stanford-core-nlp

Ruby bindings to the Stanford Core NLP tools (English, French, German).
Other
432 stars 70 forks source link

joda-time.jar not found #49

Open mooreniemi opened 6 years ago

mooreniemi commented 6 years ago

I followed the installation instructions, but when I ran pipeline = StanfordCoreNLP.load(:tokenize, :ssplit, :pos, :lemma, :parse, :ner, :dcoref) this happened:

RuntimeError: Could not find JAR file (looking in /Users/amooren/.rvm/gems/ruby-2.4.0/gems/stanford-core-nlp-0.5.3/bin/joda-time.jar).
from /Users/amooren/.rvm/gems/ruby-2.4.0/gems/bind-it-0.2.7/lib/bind-it/jar_loader.rb:20:in `load'

I manually downloaded and added the joda-time.jar into the directory and it then presented another missing jar. Perhaps the installation instructions need to be updated? Or perhaps the bindings need to reflect that the downloadable archive no longer provides all the expected jars?

arbox commented 6 years ago

Could you please provide a patch for the README? :)

Amval commented 6 years ago

Hi, @mooreniemi . I ran into this same issue, and it looked like the cause was not that the files were missing, but that the gem was not taking the right path. In my case, due to using rbenv.

Have you tried defining your own path to the jars and models?

khiem-nguyen commented 6 years ago

Same problem

rushilagr commented 6 years ago

@Amval Could you point us to how we can download the Jars & Model files.

psychoslave commented 6 years ago

This problem was addressed in https://github.com/louismullie/stanford-core-nlp/issues/52