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
Constructor Summary |
protected |
CRF.State()
|
protected |
CRF.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRF.State
protected CRF.State()
CRF.State
protected CRF.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)
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducer
in class Transducer.State
getInitialWeight
public double getInitialWeight()
- Specified by:
getInitialWeight
in class Transducer.State
setInitialWeight
public void setInitialWeight(double c)
- Specified by:
setInitialWeight
in class Transducer.State
getFinalWeight
public double getFinalWeight()
- Specified by:
getFinalWeight
in class Transducer.State
setFinalWeight
public void setFinalWeight(double c)
- Specified by:
setFinalWeight
in class Transducer.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 class Transducer.State
transitionIterator
public Transducer.TransitionIterator transitionIterator(FeatureVector fv,
java.lang.String output)
getName
public java.lang.String getName()
- Specified by:
getName
in class Transducer.State
getIndex
public final int getIndex()
- Specified by:
getIndex
in class Transducer.State