Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
lramach opened this Issue · 0 comments

1 participant

@lramach

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:in
load'
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.