我通过命令行使用
从Stanford CoreNLP运行OpenIEjava -mx1g -cp stanford-corenlp-<version>.jar:stanford-corenlp-<version>-models.jar:CoreNLP-to-HTML.xsl:slf4j-api.jar:slf4j-simple.jar edu.stanford.nlp.naturalli.OpenIE -openie.resolve_coref
但是当我想获得所有注释器的输出时我正在使用
./corenlp.sh -annotators tokenize,ssplit,pos,lemma,ner,parse,natlog,mention,openie,coref
如何向OpenIE提供参数-openie.resolve_coref
并获取其输出?
答案 0 :(得分:2)
您应该能够使用常规管道简单地传递属性-openie.resolve_coref
。我怀疑你的错误是你在coref
之后有openie
注释器,所以当运行OpenIE注释器时,还没有coref信息。