danbikel.parser.util
Class PrintCFG
java.lang.Object
danbikel.parser.util.PrintCFG
public class PrintCFG
- extends Object
Class to provide a main method to read Treebank trees and print out
the underlying CFG grammar induced from those trees. Run the main
method with the -v, -help or -usage options to
print out usage.
Method Summary |
static void |
main(String[] args)
Reads in parse trees either from a specified file or from standard input,
collects all CFG expansions and prints them, one per line, in the form
LHS -> RHS, to standard output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
- Reads in parse trees either from a specified file or from standard input,
collects all CFG expansions and prints them, one per line, in the form
LHS -> RHS, to standard output.
usage: [- | <filename>] [-ct | --convert-tags]
where the -ct|--convert-tags option indicates to convert all
part-of-speech tags to the string POS.
Author: Dan Bikel.