Package org.apache.lucene.analysis.morph
Class Viterbi.Position
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>
Holds all back pointers arriving to this position.
NOTE: This and subclasses must have no-arg constructor. See Viterbi.WrappedPositionArray
.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int[]
(package private) int[]
(package private) int[]
(package private) TokenType[]
(package private) int[]
(package private) int[]
(package private) int
(package private) int[]
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int cost, int lastRightID, int backPos, int backRPos, int backIndex, int backID, TokenType backType) int
getBackID
(int index) int
getBackIndex
(int index) int
getBackPos
(int index) getBackType
(int index) int
getBackWordPos
(int index) int
getCost
(int index) int
getCount()
int
getLastRightID
(int index) int
getPos()
private void
grow()
void
reset()
void
setCount
(int count)
-
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
-
getLastRightID
public int getLastRightID(int index)
-