Closed psychoslave closed 6 years ago
I simply had to configure the jar path:
StanfordCoreNLP.jar_path = "/usr/share/java/"
Note that with the previous installation specification, I had to do a bit more configuration:
cd ~/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/stanford-core-nlp-0.5.3/bin/models
ln -s . taggers # ’taggers/’ is suffixed to StanfordCoreNLP.model_path when looking for taggers files
ln -s $(locate frenchFactored.ser.gz | head -n1 | xargs dirname) grammar # for frenchFactored.ser.gz
And within the ruby session:
# the following assume the file database is up to date, run `sudo updatedb` if needed
StanfordCoreNLP.jar_path = `locate xom.jar | head -n1 | xargs dirname`.chomp.concat('/')
StanfordCoreNLP.model_path = `locate french.tagger | grep stanford-core-nlp | head -n1 | xargs dirname`.chomp.concat('/')
# hereStanfordCoreNLP.jar_path.empty? and StanfordCoreNLP.model_path.empty? should be checked
Hi,
I'm trying to run this gemfile on Fedora 27. The installation process was:
And trying a basic test will fail:
What did I missed in the installation process?