简体   繁体   中英

sentence index for getOpenIE method in coreNLP for R

I' using the R wrapper for Stanford's CoreNLP tools, specifically the getOpenIE method in order to extract relation triples. This appears to work fine but I'm a bit confused about the output. Whereas getCoreference returns a dataframe with a sentence column getOpenIE does not and subject_start and subject_end etc. seem to be in-sentence references. How can I determine the exact position of those elements in a document?

You want to look at the XML output. All the getOpenIE/getCoreference functions do is parse the XML anyway. I had to edit those functions as well to get sentence information.

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