cc.mallet.fst
Class HMM.State
java.lang.Object
cc.mallet.fst.Transducer.State
cc.mallet.fst.HMM.State
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- HMM
public static class HMM.State
- extends Transducer.State
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
protected |
HMM.State()
|
protected |
HMM.State(java.lang.String name,
int index,
double initialWeight,
double finalWeight,
java.lang.String[] destinationNames,
java.lang.String[] labelNames,
HMM hmm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HMM.State
protected HMM.State()
HMM.State
protected HMM.State(java.lang.String name,
int index,
double initialWeight,
double finalWeight,
java.lang.String[] destinationNames,
java.lang.String[] labelNames,
HMM hmm)
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducer
in class Transducer.State
getFinalWeight
public double getFinalWeight()
- Specified by:
getFinalWeight
in class Transducer.State
getInitialWeight
public double getInitialWeight()
- Specified by:
getInitialWeight
in class Transducer.State
setFinalWeight
public void setFinalWeight(double c)
- Specified by:
setFinalWeight
in class Transducer.State
setInitialWeight
public void setInitialWeight(double c)
- Specified by:
setInitialWeight
in class Transducer.State
print
public void print()
getDestinationState
public HMM.State getDestinationState(int index)
transitionIterator
public Transducer.TransitionIterator transitionIterator(Sequence inputSequence,
int inputPosition,
Sequence outputSequence,
int outputPosition)
- Specified by:
transitionIterator
in class Transducer.State
getName
public java.lang.String getName()
- Specified by:
getName
in class Transducer.State
getIndex
public int getIndex()
- Specified by:
getIndex
in class Transducer.State
incrementInitialCount
public void incrementInitialCount(double count)
incrementFinalCount
public void incrementFinalCount(double count)