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:

1       Pierre  _       NNP     NNP     _       2       nn      _       _
2       Vinken  _       NNP     NNP     _       4       nsubj   _       _
3       will    _       MD      MD      _       4       aux     _       _
4       join    _       VB      VB      _       0       null    _       _
5       .       _       .       .       _       4       punct   _       _

I know there is depsvg, but I find those trees hard to read, and they don't seem to correspond to actual dependency trees.

asked Jun 01 '11 at 15:32

Frank's gravatar image

Frank
1169254150

edited Jun 01 '11 at 15:36


3 Answers:

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.

answered Jun 01 '11 at 16:46

Frank's gravatar image

Frank
1169254150

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).

answered Jun 07 '11 at 11:40

yoavg's gravatar image

yoavg
69671825

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?

answered Jun 01 '11 at 16:29

Svetoslav%20Marinov's gravatar image

Svetoslav Marinov
23617

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.