Package cc.mallet.fst

Class Transducer.TransitionIterator

    • Constructor Detail

      • TransitionIterator

        public TransitionIterator()
    • Method Detail

      • hasNext

        public abstract boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Transducer.State>
      • numberNext

        @Deprecated
        public int numberNext()
        Deprecated.
      • nextState

        @Deprecated
        public abstract Transducer.State nextState()
        Deprecated.
      • remove

        public void remove()
        Specified by:
        remove in interface java.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)