当我将它放入由许多类组成的项目中时,我使用 Netbeans 8.0(存在于以下链接中)在 java 中的词形还原代码中有一个异常。例外是
Exception in thread "main" java.lang.NoSuchMethodError: edu.stanford.nlp.process.Morphology.lemma(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at edu.stanford.nlp.pipeline.MorphaAnnotator.addLemma(MorphaAnnotator.java:72)
at edu.stanford.nlp.pipeline.MorphaAnnotator.annotate(MorphaAnnotator.java:56)
at edu.stanford.nlp.pipeline.AnnotationPipeline.annotate(AnnotationPipeline.java:69)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.annotate(StanfordCoreNLP.java:684)
at summerization.StanfordLemmatizer.lemmatize(StanfordLemmatizer.java:64)
at summerization.StanfordLemmatizer.main(StanfordLemmatizer.java:100)