how to get a dependency tree with Stanford NLP parser

前端 未结 4 726
借酒劲吻你
借酒劲吻你 2020-12-16 16:22

How can I get the dependency tree as Figure below. I can get the dependency relation as pure text, and also the dependency graph with the help of dependencysee tool. But how

4条回答
  •  别那么骄傲
    2020-12-16 17:06

    I'm dealing with something similar at the moment. This is not an ideal solution but it may be helpful. as mentioned in the answer above, use the toDotFormat() to get the parse trees in dot language. then use one of the many tools (i'm using python-graph) to read this data and render it as a picture. there is an example on this link http://code.google.com/p/python-graph/wiki/Example

提交回复
热议问题