Package 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HMM.State
getDestinationState(int index)
double
getFinalWeight()
int
getIndex()
double
getInitialWeight()
java.lang.String
getName()
Transducer
getTransducer()
void
incrementFinalCount(double count)
void
incrementInitialCount(double count)
void
print()
void
setFinalWeight(double c)
void
setInitialWeight(double c)
Transducer.TransitionIterator
transitionIterator(Sequence inputSequence, int inputPosition, Sequence outputSequence, int outputPosition)
-
Methods inherited from class cc.mallet.fst.Transducer.State
transitionIterator, transitionIterator
-
-
-
-
Constructor Detail
-
State
protected State()
-
State
protected State(java.lang.String name, int index, double initialWeight, double finalWeight, java.lang.String[] destinationNames, java.lang.String[] labelNames, HMM hmm)
-
-
Method Detail
-
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducer
in classTransducer.State
-
getFinalWeight
public double getFinalWeight()
- Specified by:
getFinalWeight
in classTransducer.State
-
getInitialWeight
public double getInitialWeight()
- Specified by:
getInitialWeight
in classTransducer.State
-
setFinalWeight
public void setFinalWeight(double c)
- Specified by:
setFinalWeight
in classTransducer.State
-
setInitialWeight
public void setInitialWeight(double c)
- Specified by:
setInitialWeight
in classTransducer.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 classTransducer.State
-
getName
public java.lang.String getName()
- Specified by:
getName
in classTransducer.State
-
getIndex
public int getIndex()
- Specified by:
getIndex
in classTransducer.State
-
incrementInitialCount
public void incrementInitialCount(double count)
-
incrementFinalCount
public void incrementFinalCount(double count)
-
-