public class ForcedAlignerGrammar extends Grammar
Note that all grammar probabilities are maintained in the LogMath log base
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 |
---|
ForcedAlignerGrammar() |
ForcedAlignerGrammar(boolean showGrammar,
boolean optimizeGrammar,
boolean addSilenceWords,
boolean addFillerWords,
Dictionary dictionary) |
Modifier and Type | Method and Description |
---|---|
protected GrammarNode |
createForcedAlignerGrammar(GrammarNode iNode,
GrammarNode fNode,
java.lang.String transcript)
Create a branch of the grammar that corresponds to a transcript.
|
protected GrammarNode |
createGrammar()
Create class from reference text (not implemented).
|
protected GrammarNode |
createGrammar(java.lang.String referenceText)
Creates the grammar
|
allocate, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, deallocate, dumpGrammar, dumpRandomSentences, dumpRandomSentences, dumpStatistics, getDictionary, getGrammarNodes, getInitialNode, getNumNodes, getRandomSentence, newGrammar, newProperties, postProcessGrammar
protected GrammarNode finalNode
public ForcedAlignerGrammar(boolean showGrammar, boolean optimizeGrammar, boolean addSilenceWords, boolean addFillerWords, Dictionary dictionary)
public ForcedAlignerGrammar()
protected GrammarNode createGrammar()
createGrammar
in class Grammar
protected GrammarNode createGrammar(java.lang.String referenceText) throws java.lang.NoSuchMethodException
createGrammar
in class Grammar
referenceText
- dummy variablejava.lang.NoSuchMethodException
- if called with reference sentenceprotected GrammarNode createForcedAlignerGrammar(GrammarNode iNode, GrammarNode fNode, java.lang.String transcript)
iNode
- initial nodefNode
- final nodetranscript
- transcript