Method | Description | |
---|---|---|
fst_copy ( |
Copy one FST to another.
|
|
fst_copy_best_arcs_only ( |
Copy one FST to another, preserving only lowest-cost arcs. This is useful for visualization.
|
|
fst_copy_reverse ( |
Reverse the FST's arcs, adding a new start vertex (former accept).
|
|
fst_expand_composition ( |
Compose two FSTs. This function copies the composition of two given FSTs. That causes expansion (storing all arcs explicitly).
|
|
fst_line ( |
||
fst_sample ( Intarray result, |
Randomly sample an FST, assuming any input.
|
|
fst_sample ( string &result, |
Randomly sample an FST, assuming any input.
|
|
fst_star ( |
Make an in-place Kleene closure of the FST.
|
|
fst_star ( |
Make a Kleene closure.
|
|
remove_epsilons ( string &outs, Intarray a ) : void |
Remove epsilons (zeros) and converts integers to string.
|
|
sample_by_costs ( Floatarray costs ) : int |
Pick an array element with probability proportional to exp(-cost).
|
|
scale_fst ( |
public static fst_copy ( |
||
dst | The destination. Will be cleared before copying. | |
src | The FST to copy. | |
return | void |
public static fst_copy_best_arcs_only ( |
||
dst | The destination. Will be cleared before copying. | |
src | The FST to copy. | |
return | void |
public static fst_copy_reverse ( |
||
dst | ||
src | ||
no_accept | bool | |
return | void |
public static fst_expand_composition ( |
||
outf | ||
f1 | ||
f2 | ||
return | void |
public static fst_line ( |
||
fst | ||
s | string | |
return | void |
public static fst_sample ( Intarray result, |
||
result | Intarray | The array of output symbols, excluding epsilons. |
fst | The FST. | |
max | int | The maximum length of the result. |
return | double |
public static fst_sample ( string &result, |
||
result | string | |
fst | ||
max | int | |
return | double |
public static fst_star ( |
||
fst | ||
return | void |
public static fst_star ( |
||
result | ||
fst | ||
return | void |
public static remove_epsilons ( string &outs, Intarray a ) : void | ||
outs | string | |
a | Intarray | |
return | void |
public static sample_by_costs ( Floatarray costs ) : int | ||
costs | Floatarray | |
return | int |
public static scale_fst ( |
||
fst | ||
scale | float | |
return | void |