tree-collapse - reads multi-line Penn trees from files or STDIN and outputs trees one per line.
tree-collapse [options] [file or STDIN]
Options: -help brief help message -man full documentation
Print a brief help message and exits.
Prints the manual page and exits.
Reads inflated Penn treebank-format trees, with children indented and possibly on different lines, and outputs intact trees, one tree per line with whitespace as input.
To install Lingua::Treebank, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::Treebank
CPAN shell
perl -MCPAN -e shell install Lingua::Treebank
For more information on module installation, please visit the detailed CPAN module installation guide.