Package cc.mallet.fst
Class FeatureTransducer.State
- java.lang.Object
-
- cc.mallet.fst.Transducer.State
-
- cc.mallet.fst.FeatureTransducer.State
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FeatureTransducer
public class FeatureTransducer.State extends Transducer.State
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
State(java.lang.String name, int index, double initialWeight, double finalWeight, int[] inputs, int[] outputs, double[] weights, java.lang.String[] destinationNames, FeatureTransducer transducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getFinalWeight()
int
getIndex()
double
getInitialWeight()
java.lang.String
getName()
Transducer
getTransducer()
Multinomial.Estimator
getTransitionEstimator()
void
incrementFinalCount(double count)
void
incrementInitialCount(double count)
void
setFinalWeight(double v)
void
setInitialWeight(double v)
Transducer.TransitionIterator
transitionIterator()
Transducer.TransitionIterator
transitionIterator(int input)
Transducer.TransitionIterator
transitionIterator(Sequence inputSequence, int inputPosition)
Transducer.TransitionIterator
transitionIterator(Sequence input, int inputPosition, Sequence output, int outputPosition)
Transducer.TransitionIterator
transitionIterator(java.lang.Object o)
-
-
-
Constructor Detail
-
State
protected State(java.lang.String name, int index, double initialWeight, double finalWeight, int[] inputs, int[] outputs, double[] weights, java.lang.String[] destinationNames, FeatureTransducer transducer)
-
-
Method Detail
-
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducer
in classTransducer.State
-
getInitialWeight
public double getInitialWeight()
- Specified by:
getInitialWeight
in classTransducer.State
-
getFinalWeight
public double getFinalWeight()
- Specified by:
getFinalWeight
in classTransducer.State
-
setInitialWeight
public void setInitialWeight(double v)
- Specified by:
setInitialWeight
in classTransducer.State
-
setFinalWeight
public void setFinalWeight(double v)
- Specified by:
setFinalWeight
in classTransducer.State
-
getTransitionEstimator
public Multinomial.Estimator getTransitionEstimator()
-
getIndex
public int getIndex()
- Specified by:
getIndex
in classTransducer.State
-
transitionIterator
public Transducer.TransitionIterator transitionIterator(Sequence input, int inputPosition, Sequence output, int outputPosition)
- Specified by:
transitionIterator
in classTransducer.State
-
transitionIterator
public Transducer.TransitionIterator transitionIterator(Sequence inputSequence, int inputPosition)
- Overrides:
transitionIterator
in classTransducer.State
-
transitionIterator
public Transducer.TransitionIterator transitionIterator(java.lang.Object o)
-
transitionIterator
public Transducer.TransitionIterator transitionIterator(int input)
-
transitionIterator
public Transducer.TransitionIterator transitionIterator()
- Overrides:
transitionIterator
in classTransducer.State
-
getName
public java.lang.String getName()
- Specified by:
getName
in classTransducer.State
-
incrementInitialCount
public void incrementInitialCount(double count)
-
incrementFinalCount
public void incrementFinalCount(double count)
-
-