public class GrXMLGrammar extends JSGFGrammar
baseURL, firstNode, loadGrammar, logger, manager, PROP_BASE_GRAMMAR_URL, PROP_GRAMMAR_NAME, ruleStack
dictionary, initialNode, PROP_ADD_FILLER_WORDS, PROP_ADD_SIL_WORDS, PROP_DICTIONARY, PROP_OPTIMIZE_GRAMMAR, PROP_SHOW_GRAMMAR
Constructor and Description |
---|
GrXMLGrammar() |
Modifier and Type | Method and Description |
---|---|
void |
commitChanges()
Commit changes to all loaded grammars and all changes of grammar since
the last commitChange
|
protected void |
loadXML() |
createGrammar, dumpGrammar, getGrammarManager, getGrammarName, getInitialNode, getRuleGrammar, loadJSGF, newProperties, processRule, setBaseURL
allocate, createGrammar, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, deallocate, dumpGrammar, dumpRandomSentences, dumpRandomSentences, dumpStatistics, getDictionary, getGrammarNodes, getNumNodes, getRandomSentence, newGrammar, postProcessGrammar
protected void loadXML() throws java.io.IOException
java.io.IOException
public void commitChanges() throws java.io.IOException, JSGFGrammarParseException, JSGFGrammarException
commitChanges
in class JSGFGrammar
JSGFGrammarParseException
- parse exception occuredJSGFGrammarException
- other exception occuredjava.io.IOException
- exception during IO