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

ClassNotFoundException: edu.stanford.nlp.ie.NERFeatureFactory

Open lramach opened this issue 12 years ago • 1 comments

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.

lramach avatar Jan 27 '13 16:01 lramach

Please be patient, we are working on this issue!

arbox avatar Oct 24 '16 09:10 arbox