Given the indices necessary to make a grammar, builds the other data structures that enable fast access to parent/child information, etc.
Given the indices necessary to make a grammar, builds the other data structures that enable fast access to parent/child information, etc.
root label
index of grammar symbols
index of rules
Given a bunch of counts, builds a grammar.
Given a bunch of counts, builds a grammar.
label type
the root label
presumably counts of binary rules
presumably counts of unary rules
a base grammar instance
Builds a grammar just from some productions
(Since version ) see corresponding Javadoc for more information.