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 about the dependency tree which has words as nodes and dependency as edges. Thanks very much!
These graphs are produced using GraphViz, an open source graph drawing package, originally from AT&T Research. You can find a method toDotFormat()
in edu.stanford.nlp.trees.semgraph.SemanticGraph
that will convert a SemanticGraph
into dot
input language format which can be rendered by dot
/GraphViz. At present, there isn't a command-line tool that provides this functionality, but it's pretty straightforward using that method.