Package cc.mallet.fst
Class Transducer.TransitionIterator
- java.lang.Object
-
- cc.mallet.fst.Transducer.TransitionIterator
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Iterator<Transducer.State>
- Direct Known Subclasses:
CachedDotTransitionIterator,CRF.TransitionIterator,FeatureTransducer.TransitionIterator,HMM.TransitionIterator
- Enclosing class:
- Transducer
public abstract static class Transducer.TransitionIterator extends java.lang.Object implements java.util.Iterator<Transducer.State>, java.io.Serializable
An abstract class to iterate over the states of the transducer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransitionIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringdescribeTransition(double cutoff)abstract Transducer.StategetDestinationState()The state we are in after taking this transition.abstract intgetIndex()An implementation-specific index for this transition object, can be used to index into arrays of per-transition parameters.abstract java.lang.ObjectgetInput()The input symbol or object appearing on this transition.intgetInputPositionIncrement()The number of input positions that this transition consumes.abstract java.lang.ObjectgetOutput()The output symbol or object appearing on this transition.intgetOutputPositionIncrement()The number of output positions that this transition produces.abstract Transducer.StategetSourceState()The state we were in before taking this transition.TransducergetTransducer()abstract doublegetWeight()The weight (between infinity and -infinity) associated with taking this transition with this input/output.abstract booleanhasNext()Transducer.Statenext()abstract Transducer.StatenextState()Deprecated.intnumberNext()Deprecated.voidremove()
-
-
-
Method Detail
-
hasNext
public abstract boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<Transducer.State>
-
numberNext
@Deprecated public int numberNext()
Deprecated.
-
nextState
@Deprecated public abstract Transducer.State nextState()
Deprecated.
-
next
public Transducer.State next()
- Specified by:
nextin interfacejava.util.Iterator<Transducer.State>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<Transducer.State>
-
getIndex
public abstract int getIndex()
An implementation-specific index for this transition object, can be used to index into arrays of per-transition parameters.
-
getInput
public abstract java.lang.Object getInput()
The input symbol or object appearing on this transition.
-
getOutput
public abstract java.lang.Object getOutput()
The output symbol or object appearing on this transition.
-
getWeight
public abstract double getWeight()
The weight (between infinity and -infinity) associated with taking this transition with this input/output.
-
getSourceState
public abstract Transducer.State getSourceState()
The state we were in before taking this transition.
-
getDestinationState
public abstract Transducer.State getDestinationState()
The state we are in after taking this transition.
-
getInputPositionIncrement
public int getInputPositionIncrement()
The number of input positions that this transition consumes. This allows for transition that consume variable amounts of the sequences.
-
getOutputPositionIncrement
public int getOutputPositionIncrement()
The number of output positions that this transition produces. This allows for transition that consume variable amounts of the sequences.
-
getTransducer
public Transducer getTransducer()
-
describeTransition
public java.lang.String describeTransition(double cutoff)
-
-