Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stanford Parser - Traversing the typed dependencies graph

Basically I want to find a path between two NP tokens in the dependencies graph. However, I can't seem to find a good way to do this in the Stanford Parser. Any help?

Thank You Very Much

like image 510
pns Avatar asked Dec 05 '25 21:12

pns


1 Answers

The Stanford Parser just returns a list of dependencies between word tokens. (We do this to avoid external library dependencies.) But if you want to manipulate the dependencies, you'll almost certainly want to put them in a graph data structure. We usually use jgrapht: http://jgrapht.sourceforge.net/

like image 160
Christopher Manning Avatar answered Dec 07 '25 10:12

Christopher Manning



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!