public class NShortestPaths
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Fst |
get(Fst fst,
int n,
boolean determinize)
Calculates the n-best shortest path from the initial to the final state.
|
static float[] |
shortestDistance(Fst fst)
Calculates the shortest distances from each state to the final
|
public static float[] shortestDistance(Fst fst)
fst
- the fst to calculate the shortest distancespublic static Fst get(Fst fst, int n, boolean determinize)
fst
- the fst to calculate the nbest shortest pathsn
- number of best paths to returndeterminize
- if true the input fst will bwe determinized prior the
operation