Package org.apache.lucene.analysis.morph
Class Viterbi.WrappedPositionArray<U extends Viterbi.Position>
java.lang.Object
org.apache.lucene.analysis.morph.Viterbi.WrappedPositionArray<U>
- Enclosing class:
Viterbi<T extends Token,
U extends Viterbi.Position>
Holds partial graph (array of positions) for calculating the minimum cost path
-
Method Summary
Modifier and TypeMethodDescriptionvoid
freeBefore
(int pos) get
(int pos) Get Position instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore.
-
Method Details
-
get
Get Position instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore. -
freeBefore
public void freeBefore(int pos)
-