treedraw¶
Visualize parse trees with ASCII art or LaTeX/SVG.
Usage: discodop treedraw [<treebank>...] [options]
| --fmt=<export|bracket|discbracket|tiger|alpino> | |||||||||||||
| Specify input format [default: export]. | |||||||||||||
| --encoding=enc | Specify input encoding [default: utf-8]. | ||||||||||||
| --functions=x |
| ||||||||||||
| --morphology=x |
| ||||||||||||
| --secedge | Show secondary edges with coindexation on node labels. | ||||||||||||
| --abbr | abbreviate labels longer than 5 characters. | ||||||||||||
| --plain | disable ANSI/HTML colors. | ||||||||||||
| --frontier | only show terminal and non-terminal leaves. | ||||||||||||
| --output=x |
| ||||||||||||
| -n, --numtrees=x | |||||||||||||
| only display the first x trees from the input. | |||||||||||||
If no treebank is given, input is read from standard input; format is detected;
has the advantage of reading the input incrementally.
If more than one treebank is specified, trees will be displayed in parallel.
The ANSI colors can be viewed in a terminal with less -RS.
Examples¶
View trees in a treebank:
$ discodop treedraw < wsj-02-21.mrg | less -RS
Apply a transformation and view the result:
$ discodop treetransforms --binarize --fmt=bracket wsj-02-21.mrg | discodop treedraw | less -RS