public class AlignerGrammar extends Grammar
Modifier and Type | Field and Description |
---|---|
protected GrammarNode |
finalNode |
dictionary, initialNode, logger, PROP_ADD_FILLER_WORDS, PROP_ADD_SIL_WORDS, PROP_DICTIONARY, PROP_OPTIMIZE_GRAMMAR, PROP_SHOW_GRAMMAR
Constructor and Description |
---|
AlignerGrammar() |
AlignerGrammar(boolean showGrammar,
boolean optimizeGrammar,
boolean addSilenceWords,
boolean addFillerWords,
Dictionary dictionary) |
Modifier and Type | Method and Description |
---|---|
protected GrammarNode |
createGrammar()
Creates a grammar.
|
void |
setText(java.lang.String text) |
void |
setWords(java.lang.Iterable<java.lang.String> words) |
allocate, createGrammar, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, deallocate, dumpGrammar, dumpRandomSentences, dumpRandomSentences, dumpStatistics, getDictionary, getGrammarNodes, getInitialNode, getNumNodes, getRandomSentence, newGrammar, newProperties, postProcessGrammar
protected GrammarNode finalNode
public AlignerGrammar(boolean showGrammar, boolean optimizeGrammar, boolean addSilenceWords, boolean addFillerWords, Dictionary dictionary)
public AlignerGrammar()
public void setText(java.lang.String text)
public void setWords(java.lang.Iterable<java.lang.String> words)
protected GrammarNode createGrammar()
Grammar
createGrammar
in class Grammar