Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dependency tree to triplets

I came across this paper http://swrc.kaist.ac.kr/paper/171.pdf, which describes a method to extract triplets from a dependency tree. This result is exactly I want. However the paper only mentioned it is a "post order tree traversal". Is there any open source implementation to extract triplets? For example, "VRLA is held at Los Angeles in 2016." should generate "VRLA, is held at, Los Angeles" and "VRLA, is held, in 2016"

like image 749
Yangrui Avatar asked Oct 24 '25 12:10

Yangrui


1 Answers

You can try taking a look at the Stanford OpenIE system (part of CoreNLP):

new Sentence("VRLA is held at Los Angeles in 2016").openieTriples();

This should generate triples for (VRLA; be held at; Los Angeles) and (VRLA; be held in; 2016). More documentation on usage can be found on the OpenIE Annotator page. More generally, there are a number of OpenIE systems you can take a look at. Ollie is perhaps the most prominent, from the University of Washington.

like image 85
Gabor Angeli Avatar answered Oct 26 '25 17:10

Gabor Angeli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!