public class GrammarPoint
extends java.lang.Object
| 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
|
GrammarPoint(PronunciationState state,
int which)
Creates a GrammarPoint that corresponds to the given unit of the given pronunciation
|
GrammarPoint(SentenceHMMState state)
Creates a grammar point that points to the given unit of the given pronunciation state.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Unit[]> |
getRightContexts(int size,
boolean startWithCurrent,
int maxContexts)
Gets all of the right contexts for this grammar point.
|
public GrammarPoint(SentenceHMMState state)
state - the pronunciation of interestpublic GrammarPoint(GrammarNode node)
node - the grammar node of interestpublic GrammarPoint(PronunciationState state, int which)
state - the pronunciation statewhich - the index of the unitpublic GrammarPoint(GrammarNode node, int alternativeIndex, int wordIndex, int pronunciationIndex, int unitIndex)
node - the grammar nodealternativeIndex - the index of alternativewordIndex - the index of the word in the nodepronunciationIndex - the index of the pronunciation in the word.unitIndex - the index of the unit in the pronunciationpublic java.util.List<Unit[]> getRightContexts(int size, boolean startWithCurrent, int maxContexts)
size - the size of each context returnedstartWithCurrent - include the current state in the contextmaxContexts - the maxium number of right contexts to return