public class ViterbiPath extends Object implements Comparable<ViterbiPath>
Constructor and Description |
---|
ViterbiPath(ViterbiCandidate candidate,
ViterbiPath previousPath,
double score) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ViterbiPath o)
Compare two viterbi paths such that the one with the lower score is considered smaller.
|
ViterbiCandidate |
getCandidate()
Get the candidate of this path.
|
ViterbiPath |
getNext()
Get the next path
|
ViterbiPath |
getPrevious()
Get the previous path
|
double |
getScore()
Get the score of this path
|
void |
setNext(ViterbiPath next)
Set the next path
|
String |
toString()
Converts this object to a string.
|
public ViterbiPath(ViterbiCandidate candidate, ViterbiPath previousPath, double score)
public double getScore()
public ViterbiCandidate getCandidate()
public ViterbiPath getNext()
public void setNext(ViterbiPath next)
next
- the next pathpublic ViterbiPath getPrevious()
public String toString()
public int compareTo(ViterbiPath o)
compareTo
in interface Comparable<ViterbiPath>
Copyright © 2000–2016 DFKI GmbH. All rights reserved.