scfg_test Test the output of a parser

Table of Contents


scfg_test [options] [-grammar ifile] [-corpus ifile] [-crossbrackets ] [-heap int " {210000}"] [-o ofile]

This program applies a stochastic context free grammar to a given corpus and reports the parsing accuracy and cross bracketing accuracy of the grammar with respect to the grammar.



ifile Grammar file, one rule per line.


ifile Single Corpus file, one bracketed sentence per line.


Measure cross bracket performance.


int " {210000}" Set size of Lisp heap, needed for large corpora


ofile Output file for parsed sentences.