edu.umass.cs.mallet.base.fst
Class CRF2.TransitionIterator

java.lang.Object
  extended byedu.umass.cs.mallet.base.fst.Transducer.TransitionIterator
      extended byedu.umass.cs.mallet.base.fst.CRF2.TransitionIterator
All Implemented Interfaces:
java.util.Iterator, java.io.Serializable
Enclosing class:
CRF2

protected class CRF2.TransitionIterator
extends Transducer.TransitionIterator
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CRF2.TransitionIterator(CRF2.State source, FeatureVectorSequence inputSeq, int inputPosition, java.lang.String output, CRF2 crf)
           
 
Method Summary
 double getCost()
           
 Transducer.State getDestinationState()
           
 java.lang.Object getInput()
           
 java.lang.Object getOutput()
           
 Transducer.State getSourceState()
           
 boolean hasNext()
           
 void incrementCount(double count)
           
 Transducer.State nextState()
           
 
Methods inherited from class edu.umass.cs.mallet.base.fst.Transducer.TransitionIterator
describeTransition, getInputPositionIncrement, getOutputPositionIncrement, next, numberNext, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRF2.TransitionIterator

public CRF2.TransitionIterator(CRF2.State source,
                               FeatureVectorSequence inputSeq,
                               int inputPosition,
                               java.lang.String output,
                               CRF2 crf)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class Transducer.TransitionIterator

nextState

public Transducer.State nextState()
Specified by:
nextState in class Transducer.TransitionIterator

getInput

public java.lang.Object getInput()
Specified by:
getInput in class Transducer.TransitionIterator

getOutput

public java.lang.Object getOutput()
Specified by:
getOutput in class Transducer.TransitionIterator

getCost

public double getCost()
Specified by:
getCost in class Transducer.TransitionIterator

getSourceState

public Transducer.State getSourceState()
Specified by:
getSourceState in class Transducer.TransitionIterator

getDestinationState

public Transducer.State getDestinationState()
Specified by:
getDestinationState in class Transducer.TransitionIterator

incrementCount

public void incrementCount(double count)
Overrides:
incrementCount in class Transducer.TransitionIterator