I want to use OpenNLP to do coreference, and I follow the example in the README file :
java opennlp.tools.lang.english.SentenceDetector \
opennlp.models/english/sentdetect/EnglishSD.bin.gz < text |
java opennlp.tools.lang.english.Tokenizer \
opennlp.models/english/tokenize/EnglishTok.bin.gz |
java -Xmx350m opennlp.tools.lang.english.TreebankParser -d \
opennlp.models/english/parser |
java -Xmx350m opennlp.tools.lang.english.NameFinder -parse \
opennlp.models/english/namefind/*.bin.gz |
java -Xmx200m -DWNSEARCHDIR=$WNSEARCHDIR \
opennlp.tools.lang.english.TreebankLinker opennlp.models/english/coref
But I got the wrong message:
Exception in thread "main" java.lang.NumberFormatException: For input string: "NUMBER_OF_VERB_FRAMES"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at net.didion.jwnl.data.VerbFrame.initialize(VerbFrame.java:22)
at opennlp.tools.coref.mention.JWNLDictionary.<init>(JWNLDictionary.java:61)
at opennlp.tools.coref.mention.DictionaryFactory.getDictionary(DictionaryFactory.java:39)
at opennlp.tools.coref.sim.Context.getLemmas(Context.java:144)
at opennlp.tools.coref.sim.Context.getSynsetSet(Context.java:129)
at opennlp.tools.coref.sim.Context.init(Context.java:73)
at opennlp.tools.coref.sim.Context.<init>(Context.java:47)
at opennlp.tools.coref.mention.MentionContext.<init>(MentionContext.java:72)
at opennlp.tools.coref.mention.MentionContext.<init>(MentionContext.java:102)
at opennlp.tools.coref.AbstractLinker.constructMentionContexts(AbstractLinker.java:260)
at opennlp.tools.coref.AbstractLinker.getEntities(AbstractLinker.java:214)
at opennlp.tools.lang.english.TreebankLinker.main(TreebankLinker.java:126)
Moreover, I tried "NUMBER_OF_VERB_FRAMES" in Google, which shows this seems a problem somebody has already meet but I can not find the solution.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"