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 TypeMethodDescriptionvoidaddForward(int forwardPos, int forwardIndex, int forwardID, TokenType forwardType) intintgetForwardID(int index) intgetForwardPos(int index) getForwardType(int index) private voidvoidreset()voidsetForwardCount(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:
resetin 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)
-