Package org.apache.lucene.analysis.morph
Class ViterbiNBest.PositionNBest
java.lang.Object
org.apache.lucene.analysis.morph.Viterbi.Position
org.apache.lucene.analysis.morph.ViterbiNBest.PositionNBest
- Enclosing class:
ViterbiNBest<T extends Token,
U extends MorphData>
Viterbi.Position
extension; this holds all forward pointers to calculate n-best path.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int[]
(package private) int[]
(package private) int[]
(package private) TokenType[]
Fields inherited from class org.apache.lucene.analysis.morph.Viterbi.Position
backID, backIndex, backPos, backType, backWordPos, costs, count, lastRightID, pos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addForward
(int forwardPos, int forwardIndex, int forwardID, TokenType forwardType) int
int
getForwardID
(int index) int
getForwardPos
(int index) getForwardType
(int index) private void
void
reset()
void
setForwardCount
(int forwardCount) Methods inherited from class org.apache.lucene.analysis.morph.Viterbi.Position
add, getBackID, getBackIndex, getBackPos, getBackType, getBackWordPos, getCost, getCount, getLastRightID, getPos, setCount
-
Field Details
-
forwardCount
int forwardCount -
forwardPos
int[] forwardPos -
forwardID
int[] forwardID -
forwardIndex
int[] forwardIndex -
forwardType
TokenType[] forwardType
-
-
Constructor Details
-
PositionNBest
public PositionNBest()
-
-
Method Details
-
growForward
private void growForward() -
addForward
-
reset
public void reset()- Overrides:
reset
in classViterbi.Position
-
getForwardCount
public int getForwardCount() -
setForwardCount
public void setForwardCount(int forwardCount) -
getForwardType
-
getForwardID
public int getForwardID(int index) -
getForwardPos
public int getForwardPos(int index)
-