philipperemy / stanford-openie-python

Stanford Open Information Extraction made simple!
ISC License
635 stars 102 forks source link

Is there a way to use coref+openie using the standford-corenlp-4.1.0 version? #56

Closed Archirekh-Majumder closed 1 year ago

Archirekh-Majumder commented 2 years ago

I am trying to get triplets with coreference resolved, tried this way triples = client.annotate(corpus, properties={ "annotators":"tokenize,ssplit,pos,lemma,depparse,ner,coref,mention,natlog,openie", "outputFormat": "json", "openie.format": "ollie", "openie.resolve_coref": "true", }) but it is giving the following error.

stanfordnlp.server.client.AnnotationException: java.lang.IllegalArgumentException: annotator "openie" requires annotation "CorefChainAnnotation". The usual requirements for this annotator are: tokenize,ssplit,pos,lemma,depparse,natlog

philipperemy commented 2 years ago

@Archirekh-Majumder you should probably ask this question directly on https://github.com/stanfordnlp/CoreNLP.