stanford-core-nlp icon indicating copy to clipboard operation
stanford-core-nlp copied to clipboard

joda-time.jar not found

Open mooreniemi opened this issue 7 years ago • 5 comments

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?

mooreniemi avatar Sep 08 '17 21:09 mooreniemi

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

arbox avatar Sep 09 '17 10:09 arbox

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?

Amval avatar Sep 25 '17 08:09 Amval

Same problem

khiem-nguyen avatar Dec 05 '17 08:12 khiem-nguyen

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

rushilagr avatar Dec 08 '17 09:12 rushilagr

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

psychoslave avatar Mar 29 '18 07:03 psychoslave