louismullie / stanford-core-nlp

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

ClassNotFoundException: edu.stanford.nlp.ie.NERFeatureFactory #18

Open lramach opened 11 years ago

lramach commented 11 years ago

I am not sure if something similar has been reported, but I am getting the following error with the latest version of the gem 0.5.1, when using the models and jars from stanford-core-nlp-full.zip.

pipeline = StanfordCoreNLP.load(:tokenize, :ssplit, :pos, :lemma, :parse, :ner, :dcoref) Replacing old annotator "ner" with signature [ner.model:ner.model.3class:edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gzner.model.7class:edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gzner.model.MISCclass:edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gzner.applyNumericClassifiers:truener.useSUTime:true] with new annotator with signature [ner.model:/Users/lakshmi/.rvm/gems/ruby-1.8.7-p358/gems/stanford-core-nlp-0.5.1/bin/classifiers/all.3class.distsim.crf.ser.gzner.model.3class:edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gzner.model.7class:edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gzner.model.MISCclass:edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gzner.applyNumericClassifiers:truener.useSUTime:true] Adding annotator tokenize Adding annotator ssplit Adding annotator pos Adding annotator lemma Adding annotator parse Adding annotator ner MetaClass$ClassCreationException: java.lang.ClassNotFoundException: edu.stanford.nlp.ie.NERFeatureFactory from /Users/lakshmi/.rvm/gems/ruby-1.8.7-p358/gems/stanford-core-nlp-0.5.1/lib/stanford-core-nlp.rb:188:in method_missing' from /Users/lakshmi/.rvm/gems/ruby-1.8.7-p358/gems/stanford-core-nlp-0.5.1/lib/stanford-core-nlp.rb:188:inload' from (irb):2

The bin folder contains the following folders/files: nnotationBridge.java, joda-time.jar, stanford-segmenter.jar jollyday.jar, sutime, bridge.jar, regexner, taggers, classifiers, stanford-core-nlp-full.zip, truecase, dcoref, stanford-core-nlp.jar, xom.jar, gender, stanford-corenlp.jar, grammar, stanford-parser.jar

Are there any other jars/files I may be missing? Thanks!

Edit: I also found the NERFeatureFactory class in the stanford-core-nlp.jar file, so the class file is not missing.

arbox commented 8 years ago

Please be patient, we are working on this issue!