$ java -Xmx128m -classpath ../../lib/openccg.jar: ../../lib/trove.jar: ../../lib/jdom.jar: ../../lib/jline.jar:. opennlp.ccg.TextCCGThe tccg command has a number of optional arguments, which are passed straight on to the TextCCG class's main method as input parameters: (a) you can get help using tccg -h; (b) you can set a grammar file to read from, i.e. tccg grammar.xml; (c) you can set a file for 'exporting preferences' to, with tccg -exportprefs blah; or (d) you can set a file for 'importing preferences' from, with tccg -importprefs blah.
Tuesday, May 19, 2009
Running tccg
To do parsing and generation with openCCG, you generally run the tccg script from within the directory containing the main grammar files. This is equivalent to the following command:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment