| Package | Description |
|---|---|
| edu.cmu.sphinx.jsgf | |
| edu.cmu.sphinx.linguist.flat | |
| edu.cmu.sphinx.linguist.language.grammar |
| Modifier and Type | Field and Description |
|---|---|
protected GrammarNode |
JSGFGrammar.firstNode |
| Modifier and Type | Method and Description |
|---|---|
protected GrammarNode |
JSGFGrammar.createGrammar()
Creates the grammar.
|
GrammarNode |
JSGFGrammar.getInitialNode()
Returns the initial node for the grammar
|
| Modifier and Type | Field and Description |
|---|---|
protected GrammarNode |
FlatLinguist.initialGrammarState |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<GrammarNode,FlatLinguist.GState> |
FlatLinguist.nodeStateMap |
| Modifier and Type | Method and Description |
|---|---|
GrammarNode |
GrammarState.getGrammarNode()
Gets the grammar node associated with this state
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
FlatLinguist.addStartingPath(GrammarNode initialNode)
Start the search at the indicated node
|
protected FlatLinguist.GState |
FlatLinguist.createGState(GrammarNode grammarNode)
Returns a new GState for the given GrammarNode.
|
protected FlatLinguist.GState |
FlatLinguist.getGState(GrammarNode node)
Given a grammar node, retrieve the grammar state
|
| Constructor and Description |
|---|
GrammarPoint(GrammarNode node)
Creates a grammar node that points to the first unit of the first pronunciation of the first word of the given
grammar node
|
GrammarPoint(GrammarNode node,
int alternativeIndex,
int wordIndex,
int pronunciationIndex,
int unitIndex)
Creates a GrammarPoint that points to a fully specified unit
|
GrammarState(GrammarNode node)
Creates a GrammarState
|
GState(GrammarNode node)
Creates a GState for a grammar node
|
| Modifier and Type | Field and Description |
|---|---|
protected GrammarNode |
ForcedAlignerGrammar.finalNode |
protected GrammarNode |
AlignerGrammar.finalNode |
protected GrammarNode |
Grammar.initialNode |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,GrammarNode> |
BatchForcedAlignerGrammar.grammars |
| Modifier and Type | Method and Description |
|---|---|
protected GrammarNode |
ForcedAlignerGrammar.createForcedAlignerGrammar(GrammarNode iNode,
GrammarNode fNode,
java.lang.String transcript)
Create a branch of the grammar that corresponds to a transcript.
|
protected GrammarNode |
SimpleWordListGrammar.createGrammar()
Creates the grammar.
|
protected GrammarNode |
LatticeGrammar.createGrammar()
Creates the grammar from the language model.
|
protected GrammarNode |
LMGrammar.createGrammar()
Creates the grammar from the language model.
|
protected abstract GrammarNode |
Grammar.createGrammar()
Creates a grammar.
|
protected GrammarNode |
ForcedAlignerGrammar.createGrammar()
Create class from reference text (not implemented).
|
protected GrammarNode |
FSTGrammar.createGrammar()
Creates the grammar.
|
protected GrammarNode |
BatchForcedAlignerGrammar.createGrammar() |
protected GrammarNode |
AlignerGrammar.createGrammar() |
protected GrammarNode |
SimpleWordListGrammar.createGrammar(java.lang.String bogusText)
Create class from reference text (not implemented).
|
protected GrammarNode |
Grammar.createGrammar(java.lang.String bogusText)
Create class from reference text (not implemented).
|
protected GrammarNode |
ForcedAlignerGrammar.createGrammar(java.lang.String referenceText)
Creates the grammar
|
protected GrammarNode |
FSTGrammar.createGrammar(java.lang.String bogusText)
Create class from reference text (not implemented).
|
protected GrammarNode |
Grammar.createGrammarNode(boolean isFinal)
Creates an empty grammar node in this grammar.
|
protected GrammarNode |
Grammar.createGrammarNode(int identity,
boolean isFinal)
Creates a grammar node in this grammar with the given identity
|
protected GrammarNode |
Grammar.createGrammarNode(int identity,
java.lang.String word)
Returns a new GrammarNode with the given single word.
|
protected GrammarNode |
Grammar.createGrammarNode(int identity,
java.lang.String[][] alts)
Returns a new GrammarNode with the given set of alternatives.
|
protected GrammarNode |
Grammar.createGrammarNode(java.lang.String word)
Returns a new GrammarNode with the given single word.
|
GrammarNode |
GrammarArc.getGrammarNode()
Retrieves the destination node for this transition
|
GrammarNode |
GrammarInterface.getInitialNode() |
GrammarNode |
Grammar.getInitialNode()
Returns the initial node for the grammar
|
GrammarNode |
BatchForcedAlignerGrammar.getInitialNode() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<GrammarNode> |
GrammarInterface.getGrammarNodes() |
java.util.Set<GrammarNode> |
Grammar.getGrammarNodes()
returns the set of of nodes in this grammar
|
| Modifier and Type | Method and Description |
|---|---|
void |
GrammarNode.add(GrammarNode node,
float logProbability)
Adds an arc to the given node
|
protected GrammarNode |
ForcedAlignerGrammar.createForcedAlignerGrammar(GrammarNode iNode,
GrammarNode fNode,
java.lang.String transcript)
Create a branch of the grammar that corresponds to a transcript.
|
| Constructor and Description |
|---|
GrammarArc(GrammarNode grammarNode,
float logProbability)
Create a grammar arc
|