Swaps left child and parent
Writes a text representation of the grammar to the output.
(Since version ) see corresponding Javadoc for more information.
A epic.parser.SimpleGrammar is a grammar where the topology of the grammar (including the refinements) and the scores for the rules does not vary with the input sentence. That is, this is the class for the standard kind of PCFG/WCFG that are normally taught.