|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.Context
edu.cmu.sphinx.linguist.acoustic.LeftRightContext
Represents the context for a unit
Field Summary |
Fields inherited from class edu.cmu.sphinx.linguist.acoustic.Context |
EMPTY_CONTEXT |
Method Summary | |
static LeftRightContext |
get(Unit[] leftContext,
Unit[] rightContext)
Factory method for creating a left/right context |
static java.lang.String |
getContextName(Unit[] context)
Gets the context name for a particular array of units |
Unit[] |
getLeftContext()
Retrieves the left context for this unit |
Unit[] |
getRightContext()
Retrieves the right context for this unit |
boolean |
isPartialMatch(Context context)
Checks to see if there is a partial match with the given context. |
java.lang.String |
toString()
Provides a string representation of a context |
Methods inherited from class edu.cmu.sphinx.linguist.acoustic.Context |
equals, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String toString()
toString
in class Context
public static LeftRightContext get(Unit[] leftContext, Unit[] rightContext)
leftContext
- the left context or null if no left contextrightContext
- the right context or null if no right context
public Unit[] getLeftContext()
public Unit[] getRightContext()
public static java.lang.String getContextName(Unit[] context)
context
- the context
public boolean isPartialMatch(Context context)
isPartialMatch
in class Context
context
- the context to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |