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 |
finalNodedictionary, 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, createGrammarallocate, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, createGrammarNode, deallocate, dumpGrammar, dumpRandomSentences, dumpRandomSentences, dumpStatistics, getDictionary, getGrammarNodes, getNumNodes, getRandomSentence, newGrammar, postProcessGrammarclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGrammarNodes@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
ConfigurablenewProperties in interface ConfigurablenewProperties in class Grammarps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.protected GrammarNode createGrammar()
ForcedAlignerGrammarcreateGrammar in class ForcedAlignerGrammarpublic GrammarNode getInitialNode()
GrammargetInitialNode in interface GrammarInterfacegetInitialNode in class Grammarpublic void setUtterance(java.lang.String utteranceName)