Метод | Описание | |
---|---|---|
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. | |
Результат | void |
public static fst_copy_best_arcs_only ( |
||
dst | The destination. Will be cleared before copying. | |
src | The FST to copy. | |
Результат | void |
public static fst_copy_reverse ( |
||
dst | ||
src | ||
no_accept | bool | |
Результат | void |
public static fst_expand_composition ( |
||
outf | ||
f1 | ||
f2 | ||
Результат | void |
public static fst_line ( |
||
fst | ||
s | string | |
Результат | 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. |
Результат | double |
public static fst_sample ( string &result, |
||
result | string | |
fst | ||
max | int | |
Результат | double |
public static fst_star ( |
||
fst | ||
Результат | void |
public static fst_star ( |
||
result | ||
fst | ||
Результат | void |
public static remove_epsilons ( string &outs, Intarray a ) : void | ||
outs | string | |
a | Intarray | |
Результат | void |
public static sample_by_costs ( Floatarray costs ) : int | ||
costs | Floatarray | |
Результат | int |
public static scale_fst ( |
||
fst | ||
scale | float | |
Результат | void |