public class ViterbiNode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ViterbiNode.Type |
Constructor and Description |
---|
ViterbiNode(int wordId,
java.lang.String word,
Dictionary dictionary,
int startIndex,
ViterbiNode.Type type) |
ViterbiNode(int wordId,
java.lang.String surface,
int leftId,
int rightId,
int wordCost,
int startIndex,
ViterbiNode.Type type) |
Modifier and Type | Method and Description |
---|---|
int |
getLeftId() |
ViterbiNode |
getLeftNode() |
int |
getPathCost() |
int |
getRightId() |
int |
getStartIndex() |
java.lang.String |
getSurface() |
ViterbiNode.Type |
getType() |
int |
getWordCost() |
int |
getWordId() |
void |
setLeftNode(ViterbiNode node) |
void |
setPathCost(int pathCost)
param cost minimum path cost found this far
|
public ViterbiNode(int wordId, java.lang.String surface, int leftId, int rightId, int wordCost, int startIndex, ViterbiNode.Type type)
public ViterbiNode(int wordId, java.lang.String word, Dictionary dictionary, int startIndex, ViterbiNode.Type type)
public int getWordId()
public java.lang.String getSurface()
public int getLeftId()
public int getRightId()
public int getWordCost()
public int getPathCost()
public void setPathCost(int pathCost)
pathCost
- cost to set for this nodepublic void setLeftNode(ViterbiNode node)
public ViterbiNode getLeftNode()
public int getStartIndex()
public ViterbiNode.Type getType()