Reputation: 155
I downloaded the source code of coreNLP from this page and the model recommended in the README file. I create a new project in eclipse and tried to run openie by it return the following exception:
Exception in thread "main" edu.stanford.nlp.io.RuntimeIOException: Could not load clause splitter model at edu/stanford/nlp/models/naturalli/clauseSearcherModel.ser.gz
at edu.stanford.nlp.naturalli.OpenIE.<init>(OpenIE.java:201)
at edu.stanford.nlp.pipeline.AnnotatorImplementations.openie(AnnotatorImplementations.java:272)
at edu.stanford.nlp.pipeline.AnnotatorFactories$20.create(AnnotatorFactories.java:654)
at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:89)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:403)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:142)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:138)
at edu.stanford.nlp.naturalli.demo.Demo.main(Demo.java:37)
Caused by: java.io.InvalidClassException: edu.stanford.nlp.naturalli.ClauseSplitterSearchProblem$8; local class incompatible: stream classdesc serialVersionUID = 4145523451314579506, local class serialVersionUID = -7360029270983346606
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:621)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
at edu.stanford.nlp.io.IOUtils.readObjectFromURLOrClasspathOrFileSystem(IOUtils.java:325)
at edu.stanford.nlp.naturalli.ClauseSplitter.load(ClauseSplitter.java:283)
at edu.stanford.nlp.naturalli.OpenIE.<init>(OpenIE.java:196)
... 7 more
Upvotes: 0
Views: 211
Reputation: 8739
I have done the following steps:
clone the repo from GitHub: https://github.com/stanfordnlp/CoreNLP.git
download the latest model jar at: http://nlp.stanford.edu/software/stanford-corenlp-models-current.jar
cd CoreNLP ; ant
at this point you should have built the latest version of the code on GitHub
set CLASSPATH to include CoreNLP/classes, CoreNLP/lib and the latest models jar
run this command: java -Xmx4g edu.stanford.naturalli.OpenIE
It works fine, so I don't think there are any problems with what we are currently distributing.
Upvotes: 1