java.lang.Object
org.apache.lucene.analysis.morph.Viterbi.Position
Direct Known Subclasses:
ViterbiNBest.PositionNBest
Enclosing class:
Viterbi<T extends Token,U extends Viterbi.Position>

public static class Viterbi.Position extends Object
Holds all back pointers arriving to this position.

NOTE: This and subclasses must have no-arg constructor. See Viterbi.WrappedPositionArray.

  • Field Details

    • pos

      int pos
    • count

      int count
    • costs

      int[] costs
    • lastRightID

      int[] lastRightID
    • backPos

      int[] backPos
    • backWordPos

      int[] backWordPos
    • backIndex

      int[] backIndex
    • backID

      int[] backID
    • backType

      TokenType[] backType
  • Constructor Details

    • Position

      public Position()
  • Method Details

    • grow

      private void grow()
    • add

      public void add(int cost, int lastRightID, int backPos, int backRPos, int backIndex, int backID, TokenType backType)
    • reset

      public void reset()
    • getPos

      public int getPos()
    • getCount

      public int getCount()
    • setCount

      public void setCount(int count)
    • getCost

      public int getCost(int index)
    • getBackPos

      public int getBackPos(int index)
    • getBackWordPos

      public int getBackWordPos(int index)
    • getBackID

      public int getBackID(int index)
    • getBackIndex

      public int getBackIndex(int index)
    • getBackType

      public TokenType getBackType(int index)
    • getLastRightID

      public int getLastRightID(int index)