public class BatchForcedAlignerGrammar extends ForcedAlignerGrammar implements GrammarInterface
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
currentUttName |
protected java.util.Map<java.lang.String,GrammarNode> |
grammars |
static java.lang.String |
PROP_REF_FILE
Property that defines the reference file containing the transcripts used to create the froced align grammar
|
protected java.lang.String |
refFile |
finalNode
dictionary, initialNode, logger, PROP_ADD_FILLER_WORDS, PROP_ADD_SIL_WORDS, PROP_DICTIONARY, PROP_OPTIMIZE_GRAMMAR, PROP_SHOW_GRAMMAR
Constructor and Description |
---|
BatchForcedAlignerGrammar() |
BatchForcedAlignerGrammar(java.lang.String refFile,
boolean showGrammar,
boolean optimizeGrammar,
boolean addSilenceWords,
boolean addFillerWords,
Dictionary dictionary) |
Modifier and Type | Method and Description |
---|---|
protected GrammarNode |
createGrammar()
Create class from reference text (not implemented).
|
GrammarNode |
getInitialNode()
Returns the initial node for the grammar
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
void |
setUtterance(java.lang.String utteranceName) |
createForcedAlignerGrammar, createGrammar
allocate, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, deallocate, dumpGrammar, dumpRandomSentences, dumpRandomSentences, dumpStatistics, getDictionary, getGrammarNodes, getNumNodes, getRandomSentence, newGrammar, postProcessGrammar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGrammarNodes
@S4String(defaultValue="<refFile not set>") public static final java.lang.String PROP_REF_FILE
protected java.lang.String refFile
protected final java.util.Map<java.lang.String,GrammarNode> grammars
protected java.lang.String currentUttName
public BatchForcedAlignerGrammar(java.lang.String refFile, boolean showGrammar, boolean optimizeGrammar, boolean addSilenceWords, boolean addFillerWords, Dictionary dictionary)
public BatchForcedAlignerGrammar()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class Grammar
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.protected GrammarNode createGrammar()
ForcedAlignerGrammar
createGrammar
in class ForcedAlignerGrammar
public GrammarNode getInitialNode()
Grammar
getInitialNode
in interface GrammarInterface
getInitialNode
in class Grammar
public void setUtterance(java.lang.String utteranceName)