Stanford Parser - Traversing the typed dependencies graph

后端 未结 1 764
无人及你
无人及你 2021-01-06 15:52

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?

相关标签:
1条回答
  • 2021-01-06 16:29

    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/

    0 讨论(0)
提交回复
热议问题