hap*_*y77 12 stanford-nlp
如何获得依赖树,如下图所示.我可以将依赖关系作为纯文本,并在dependencysee工具的帮助下获得依赖图.但是依赖树如何将单词作为节点和依赖作为边缘.非常感谢!
Chr*_*ing 8
这些图是使用GraphViz生成的,GraphViz是一个开源图形绘图包,最初来自AT&T Research.你可以找到一个方法toDotFormat()中edu.stanford.nlp.trees.semgraph.SemanticGraph,将转换SemanticGraph成dot可通过呈现输入语言格式dot/ GraphViz的.目前,没有提供此功能的命令行工具,但使用该方法非常简单.
toDotFormat()
edu.stanford.nlp.trees.semgraph.SemanticGraph
SemanticGraph
dot
归档时间:
12 年,9 月 前
查看次数:
7798 次
最近记录:
8 年,2 月 前