I run OpenIE from Stanford CoreNLP through command line with
java -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
But when I want to get output for all annotators I am using
./corenlp.sh -annotators tokenize,ssplit,pos,lemma,ner,parse,natlog,mention,openie,coref
How can I provide parameter -openie.resolve_coref
to OpenIE and get not only it's output?
You should be able to simply pass the property -openie.resolve_coref
using the regular pipeline. I suspect your mistake here is that you have the coref
annotator after openie
, and so there's no coref information yet when the OpenIE annotator is run.