I'm following the ccgbank-README
in openCCG when I have the following issue (just part of the log file):
ner-tag-text:
[echo] NER tagging into file ./data/novel/two-sents.dir/nertext
[echo] Models: ./stanford-nlp/classifiers/english.all.3class.distsim.crf.ser.gz , ./stanford-nlp/classifiers/english.muc.7class.distsim.crf.ser.gz, ./stanford-nlp/classifiers/english.conll.4class.distsim.crf.ser.gz
[java] java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
which says that there is a NoClassDefFoundError
with org/slf4j/LoggerFactory
. I searched the Internet and I found many people had the same problem. So I followed this solution by adding
slf4j-api-1.7.2.jar
slf4j-simple-1.7.2.jar
to my classpath. After that, I have the classpath as follows:
zhao@zhao-ubuntu:~$ echo $CLASSPATH
/home/zhao/slf4j-simple-1.7.21.jar:/home/zhao/slf4j-api-1.7.21.jar
However, this doesn't solve my problem.
Problem solved by using an version 1.3.4 of CoreNLP.