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.-
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) 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
-
Constructor Details
-
PositionNBest
public PositionNBest()
-
-
Method Details
-
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)
-