![]() |
![]()
| ![]() |
![]()
NAMElist-rewrites - reads penn treebanks, prints out all rewrites found SYNOPSISlist-rewrites [options] [file ...] Options: -help brief help message -man full documentation --verbose more verbose to STDERR --directinput allow TTY to STDIN --format FORMAT provide a different output format --terminal include (exclude) terminal expansions --noterminal default is --terminal Sample output$ echo "(S (NP (DET the) (NN dog)) (VP ran))" | ./list-rewrites S => NP VP NP => DET NN DET => the NN => dog VP => ran OPTIONS
DESCRIPTIONThis program lists all rewrites in all trees presented by file or on STDIN to this script. CAVEATSThe trees must be in Penn treebank format. The rewrites will not necessarily be unique; if you want them to be unique, you will have to pipe the output of this program into (e.g.) "sort | uniq". This is deliberate, so that you can get counts from the output of this program as well as a survey of the rewrites in a corpus. TO DONone that I know of. AUTHORJeremy G. Kahn <jgk@ssli.ee.washington.edu>
|