![]() |
![]()
| ![]() |
![]()
NAMElist-edges - reads penn treebanks, prints out all edges found in each tree, one tree per line SYNOPSISlist-edges [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 --noterminal Sample output$ echo "(S (NP (DET the) (NN dog)) (VP (VBD ran)))" | ./list-edges --terminal DET::the,0,1 NN::dog,1,2 NP,0,2 VBD::ran,2,3 VP,2,3 OPTIONS
DESCRIPTIONThis program lists all edges in the trees presented, one tree per line. Edges are LABEL,INDEX,INDEX where INDEX values come from between the words (0-based). CAVEATSThe trees must be in Penn treebank format. TO DONone that I know of. AUTHORJeremy G. Kahn <jgk@ssli.ee.washington.edu>
|