Discontinuous tree drawing

Enter one or more syntax trees.
Output:

Options:

Notations accepted:

  • Regular tree(s) in bracket notation (example)
  • Discontinuous tree(s) in bracket notation. Represent terminals with integer indices, sentence on next line (example).
  • Negra export format tree (example); optionally shows function & morphology tags; trees need to be wrapped in:
    #BOS [number]
    ...
    #EOS [number]
  • Alpino XML: <alpino_ds> ... </alpino_ds> (example)

NB: This code is experimental—the layout is typically not optimal. However, with some manual editing it can give good results (e.g., change coordinates of nodes with overlapping edges, tweak scale to save space). When working with LaTeX, it is recommended to use a WYSIWYG editor like Gummi for this to get immediate feedback.