CogComp / cogcomp-nlp

CogComp's Natural Language Processing Libraries and Demos: Modules include lemmatizer, ner, pos, prep-srl, quantifier, question type, relation-extraction, similarity, temporal normalizer, tokenizer, transliteration, verb-sense, and more.
http://nlp.cogcomp.org/
Other
470 stars 142 forks source link

java.lang.NullPointerException in LearningCurveMultiDataset #674

Closed agusgun closed 6 years ago

agusgun commented 6 years ago

Here is the exception stack trace: java.lang.NullPointerException at edu.illinois.cs.cogcomp.ner.LbjTagger.LearningCurveMultiDataset.getLearningCurve(LearningCurveMultiDataset.java:167) at edu.illinois.cs.cogcomp.ner.LbjTagger.LearningCurveMultiDataset.getLearningCurve(LearningCurveMultiDataset.java:81) at edu.illinois.cs.cogcomp.ner.NerTagger.main(NerTagger.java:41) I think this exception occured because simpleTest.getOverallStats()[2] in line 157 have NaN value

danyaljj commented 6 years ago

How do you run the code?

FYI @cowchipkid

agusgun commented 6 years ago

I just run train command using the default data. The train command is same with the train command in README. This is the command: java -Xmx8g -cp target/classes:target/dependency/* edu.illinois.cs.cogcomp.ner.NerTagger -train test/Test/0224.txt test/Test/0228.txt config/ner.properties

mayhewsw commented 6 years ago

This is fixed in this commit: https://github.com/CogComp/cogcomp-nlp/pull/700/commits/ecf743197facc0cf950fcfa87c9ecfaf29d0a093

agusgun commented 6 years ago

Oke, I will close the issue