Package cc.mallet.fst
Class FeatureTransducer
- java.lang.Object
-
- cc.mallet.fst.Transducer
-
- cc.mallet.fst.FeatureTransducer
-
- All Implemented Interfaces:
java.io.Serializable
public class FeatureTransducer extends Transducer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FeatureTransducer.State
protected class
FeatureTransducer.Transition
protected class
FeatureTransducer.TransitionIterator
-
Nested classes/interfaces inherited from class cc.mallet.fst.Transducer
Transducer.Incrementor
-
-
Field Summary
-
Fields inherited from class cc.mallet.fst.Transducer
CERTAIN_WEIGHT, IMPOSSIBLE_WEIGHT, inputPipe, outputPipe
-
-
Constructor Summary
Constructors Constructor Description FeatureTransducer()
FeatureTransducer(Alphabet dictionary)
FeatureTransducer(Alphabet inputAlphabet, Alphabet outputAlphabet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addState(java.lang.String name, double initialWeight, double finalWeight, int[] inputs, int[] outputs, double[] weights, java.lang.String[] destinationNames)
void
addState(java.lang.String name, double initialWeight, double finalWeight, java.lang.Object[] inputs, java.lang.Object[] outputs, double[] weights, java.lang.String[] destinationNames)
void
estimate()
Alphabet
getInputAlphabet()
Alphabet
getOutputAlphabet()
Transducer.State
getState(int index)
java.util.Iterator<FeatureTransducer.State>
initialStateIterator()
boolean
isTrainable()
int
numStates()
void
reset()
void
setTrainable(boolean f)
-
Methods inherited from class cc.mallet.fst.Transducer
averageTokenAccuracy, canIterateAllTransitions, generatePath, getInputPipe, getMaxLatticeFactory, getOutputPipe, getSumLatticeFactory, isGenerative, label, less_efficient_sumLogProb, no_longer_needed_sumNegLogProb, print, setMaxLatticeFactory, setSumLatticeFactory, stateIndexOfString, sumLogProb, transduce, transduce
-
-
-
-
Method Detail
-
getInputAlphabet
public Alphabet getInputAlphabet()
-
getOutputAlphabet
public Alphabet getOutputAlphabet()
-
addState
public void addState(java.lang.String name, double initialWeight, double finalWeight, int[] inputs, int[] outputs, double[] weights, java.lang.String[] destinationNames)
-
addState
public void addState(java.lang.String name, double initialWeight, double finalWeight, java.lang.Object[] inputs, java.lang.Object[] outputs, double[] weights, java.lang.String[] destinationNames)
-
numStates
public int numStates()
- Specified by:
numStates
in classTransducer
-
getState
public Transducer.State getState(int index)
- Specified by:
getState
in classTransducer
-
initialStateIterator
public java.util.Iterator<FeatureTransducer.State> initialStateIterator()
- Specified by:
initialStateIterator
in classTransducer
-
isTrainable
public boolean isTrainable()
-
setTrainable
public void setTrainable(boolean f)
-
reset
public void reset()
-
estimate
public void estimate()
-
-