斯坦福解析器 - 遍历类型化依赖关系图 [英] Stanford Parser - Traversing the typed dependencies graph
本文介绍了斯坦福解析器 - 遍历类型化依赖关系图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上我想在依赖关系图中找到两个 NP 标记之间的路径.但是,我似乎无法在斯坦福解析器中找到一个很好的方法来做到这一点.有什么帮助吗?
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?
非常感谢
推荐答案
Stanford Parser 只返回单词标记之间的依赖关系列表.(我们这样做是为了避免外部库依赖.)但是如果你想操作依赖,你几乎肯定想把它们放在一个图形数据结构中.我们通常使用jgrapht:http://jgrapht.sourceforge.net/
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/
这篇关于斯坦福解析器 - 遍历类型化依赖关系图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文