|
Does anyone know a good visualizer or viewer for dependency trees? Ideally, the trees should look like in most papers on dependency parsing, e.g. in Nivre & McDonald (2008). And the input format should preferably be the CONLL-X format, for example:
I know there is depsvg, but I find those trees hard to read, and they don't seem to correspond to actual dependency trees. |
|
I found it! The Java package Whatswrong draws pretty nice trees from the text format above. The format "CoNLL 2006" needs to be specified when loading the text corpus. Cool! Thanks for sharing!
(Jun 01 '11 at 17:49)
Svetoslav Marinov
|
|
Another option beside whatswrong is Federico's DepTreeViewer java tool. I find it easier to read for long sentences (i.e. if you are interested in actually looking at the trees, not just generating examples for slides/papers). No documentation for it and all my attempts to open a CoNLL-format treebank result in a number of Java exceptions. So how do you use it?
(Jun 07 '11 at 15:38)
Svetoslav Marinov
works just fine for me -- perhaps your CoNLL-format treebank has spaces instead of tabs as the column separator, or is missing a column?
(Jun 07 '11 at 15:49)
yoavg
Last two columns missing. Works fine now.
(Jun 07 '11 at 16:04)
Svetoslav Marinov
|
|
To my knowledge, there aren't any really good tools which would allow you to visualize the CoNLL format dependency trees. Most probably you will need to do some transformations to the format and use tools available for phrase structure trees. Some options to try are: @Annotate and TreeAligner For the Alpino Treebank people have used DTView Then when it comes to LaTeX, there are a number of packages and I have personally used, tree-dvips, qtree, etc. What is the purpose for visualizing the trees? |