我正在使用斯坦福大学的CoreNLP版本3.4。我希望以Conll格式输出注释器tokenize、ssplit、pos、lemma和ner。但是,在执行命令java -cp stanford-corenlp-3.4.jar:stanford-corenlp-3.4-models.jar:xom.jar:joda-time.jar:jollyday.jar:ejml-3.4.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner -file input.txt -outputFormat conll时,它会显示以下错误。
线程"main“中的异常:无枚举常数edu.stanford.nlp.pipeline.StanfordCoreNLP.OutputFormat.CONLL at java.lang.Enum.valueOf(Enum.java:236)在edu.stanford.nlp.pipeline.StanfordCoreNLP.processFiles(StanfordCoreNLP.java:1167) at edu.stanford.nlp.pipeline.StanfordCoreNLP.main(StanfordCoreNLP.java:1448)
P.S:我不想对依赖项进行注释。有什么建议吗?
发布于 2015-08-02 15:49:34
CoNLL输出格式化程序是在3.5.0版本中添加的。升级您的版本,此错误将消失。
https://stackoverflow.com/questions/31764348
复制相似问题