Package cc.mallet.fst
Class CRF.State
- java.lang.Object
-
- cc.mallet.fst.Transducer.State
-
- cc.mallet.fst.CRF.State
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MEMM.State
- Enclosing class:
- CRF
public static class CRF.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 void
addWeight(int didx, java.lang.String weightName)
CRF.State
getDestinationState(int index)
double
getFinalWeight()
int
getIndex()
double
getInitialWeight()
java.lang.String
getLabelName(int index)
java.lang.String
getName()
Transducer
getTransducer()
java.lang.String[]
getWeightNames(int index)
int
numDestinations()
void
print()
void
setFinalWeight(double c)
void
setInitialWeight(double c)
Transducer.TransitionIterator
transitionIterator(FeatureVector fv, java.lang.String output)
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, java.lang.String[][] weightNames, CRF crf)
-
-
Method Detail
-
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducer
in classTransducer.State
-
getInitialWeight
public double getInitialWeight()
- Specified by:
getInitialWeight
in classTransducer.State
-
setInitialWeight
public void setInitialWeight(double c)
- Specified by:
setInitialWeight
in classTransducer.State
-
getFinalWeight
public double getFinalWeight()
- Specified by:
getFinalWeight
in classTransducer.State
-
setFinalWeight
public void setFinalWeight(double c)
- Specified by:
setFinalWeight
in classTransducer.State
-
print
public void print()
-
numDestinations
public int numDestinations()
-
getWeightNames
public java.lang.String[] getWeightNames(int index)
-
addWeight
public void addWeight(int didx, java.lang.String weightName)
-
getLabelName
public java.lang.String getLabelName(int index)
-
getDestinationState
public CRF.State getDestinationState(int index)
-
transitionIterator
public Transducer.TransitionIterator transitionIterator(Sequence inputSequence, int inputPosition, Sequence outputSequence, int outputPosition)
- Specified by:
transitionIterator
in classTransducer.State
-
transitionIterator
public Transducer.TransitionIterator transitionIterator(FeatureVector fv, java.lang.String output)
-
getName
public java.lang.String getName()
- Specified by:
getName
in classTransducer.State
-
getIndex
public final int getIndex()
- Specified by:
getIndex
in classTransducer.State
-
-