louismullie / stanford-core-nlp

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

Ruby 2.2? #42

Open kmwarren opened 8 years ago

kmwarren commented 8 years ago

I'm having trouble getting stanford-core-nlp gem working with Ruby 2.2. Using code below from your s-c-nlp gem page (https://github.com/louismullie/stanford-core-nlp). I'm getting errors "private method load' [alsorequire']" and "uninitialized constant StanfordCoreNLP::Annotation (NameError)". Any input appreciated.

StanfordCoreNLP.jar_path = '[newpath]'

pipeline = StanfordCoreNLP.load(:tokenize, :ssplit, :pos, :lemma, :parse, :ner, :dcoref) text = StanfordCoreNLP::Annotation.new(text) pipeline.annotate(text)

arbox commented 7 years ago

Please be patient, we are working on this issue!

arbox commented 7 years ago

@kmwarren Any changes with your issue and the newer code? Actually is should work on newer Rubies.