You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'stanford-core-nlp'StanfordCoreNLP.use:frenchtext=%q{Socrate (en grec ancien Σωκράτης / Sōkrátēs) est un philosophe grec du Ve siècle av. J.-C. (né vers -470/469, mort en -399). Il est connu comme l’un des créateurs de la philosophie morale. Socrate n’a laissé aucun écrit, mais sa pensée et sa réputation se sont transmises par des témoignages indirects. Ses disciples Platon et Xénophon ont notablement œuvré à maintenir l'image de leur maître, qui est mis en scène dans leurs œuvres respectives. Les philosophes Démétrios de Phalère, et Maxime de Tyr dans sa Neuvième Dissertation1 ont écrit que Socrate est mort à l’âge de 70 ans.}pipeline=StanfordCoreNLP.load(:tokenize,:ssplit,:pos,:lemma,:parse,:ner,:dcoref)RuntimeError: Could not findJARfile(lookingin/home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/stanford-core-nlp-0.5.3/bin/joda-time.jar).from/home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/bind-it-0.2.7/lib/bind-it/jar_loader.rb:20:in `load'
What did I missed in the installation process?
The text was updated successfully, but these errors were encountered:
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 neededStanfordCoreNLP.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?
The text was updated successfully, but these errors were encountered: