开发者

Stanford Parser - Traversing the typed dependencies graph

开发者 https://www.devze.com 2022-12-27 23:34 出处:网络
Basically I want to find a pa开发者_如何学Pythonth 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?

Basically I want to find a pa开发者_如何学Pythonth 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


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

精彩评论

暂无评论...
验证码 换一张
取 消