简体   繁体   中英

Provide parameters to Stanford CoreNLP OpenIE from command line

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM