public class Convert
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
export(Fst fst,
java.lang.String basename)
Exports an fst to the openfst text format Several files are created as
follows: - basename.input.syms - basename.output.syms - basename.fst.txt
See OpenFst
Quick Tour
|
static Fst |
importFst(java.lang.String basename,
Semiring semiring)
Imports an openfst text format Several files are imported as follows: -
basename.input.syms - basename.output.syms - basename.fst.txt
|
public static void export(Fst fst, java.lang.String basename) throws java.io.IOException
fst
- the fst to exportbasename
- the files' base namejava.io.IOException
- IO went wrongpublic static Fst importFst(java.lang.String basename, Semiring semiring) throws java.lang.NumberFormatException, java.io.IOException
basename
- the files' base namesemiring
- the fst's semiringjava.io.IOException
- IO went wrongjava.lang.NumberFormatException
- load failed due to data format issues