Class BackPointer


  • public class BackPointer
    extends java.lang.Object
    A backpointer.

    This is used to facilitate traceback after the Viterbi computation.

    Author:
    Matthew Pocock
    • Field Summary

      Fields 
      Modifier and Type Field Description
      BackPointer back
      The previous backpointer (towards origin of DP matrix) in traceback.
      double score
      The score of this element of the DP matrix.
      State state
      The state with which this backpointer is associated.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • state

        public final State state
        The state with which this backpointer is associated.
      • back

        public final BackPointer back
        The previous backpointer (towards origin of DP matrix) in traceback.
      • score

        public final double score
        The score of this element of the DP matrix.
    • Constructor Detail

      • BackPointer

        public BackPointer​(State state,
                           BackPointer back,
                           double score)
      • BackPointer

        public BackPointer​(State s)