get_words - given collapsed treebank, print words only
get_words [options] [file[s] or STDIN]
Options: -help brief help message -man full documentation -sgml put <s> and </s> tokens around words -nosgml -parens put ( and ) tokens around words -noparens
Print a brief help message and exits.
Prints the manual page and exits.
Writes <s> at the beginning of each line and </s> at the end of each line, or (in the case of -nosgml) don't.
-nosgml
Default is -sgml.
-sgml
Writes ( at the beginning of each line and ) at the end of each line, or (in the case of -noparens) don't.
(
)
-noparens
Default is -noparens.
Reads input files (or STDIN) for Penn-style trees, one per line, and prints out only the words, one tree per line.
Providing the -sgml tag makes the output pseudo-SGML by including angle-bracketed <s> and </s> tokens at the beginning and end of each line.
<s>
</s>
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.