| Package | Description |
|---|---|
| edu.cmu.sphinx.fst | |
| edu.cmu.sphinx.fst.operations | |
| edu.cmu.sphinx.fst.sequitur |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableFst
An immutable finite state transducer implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static Fst |
Convert.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
|
static Fst |
Fst.loadModel(java.lang.String filename)
Deserializes an Fst from disk
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Convert.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
|
| Modifier and Type | Method and Description |
|---|---|
static Fst |
Compose.compose(Fst fst1,
Fst fst2,
Semiring semiring,
boolean sorted)
Computes the composition of two Fsts.
|
static Fst |
RmEpsilon.get(Fst fst)
Removes epsilon transitions from an fst.
|
static Fst |
Reverse.get(Fst fst)
Reverses an fst
|
static Fst |
Determinize.get(Fst fst)
Determinizes an fst.
|
static Fst |
Compose.get(Fst fst1,
Fst fst2,
Semiring semiring)
Computes the composition of two Fsts.
|
static Fst |
NShortestPaths.get(Fst fst,
int n,
boolean determinize)
Calculates the n-best shortest path from the initial to the final state.
|
static Fst |
Compose.getFilter(java.lang.String[] syms,
Semiring semiring)
Get a filter to use for avoiding multiple epsilon paths in the resulting
Fst
See: M.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ExtendFinal.apply(Fst fst)
Extends an Fst to a single final state.
|
static void |
Connect.apply(Fst fst)
Trims an Fst, removing states and arcs that are not on successful paths.
|
static void |
ArcSort.apply(Fst fst,
java.util.Comparator<Arc> cmp)
Applies the ArcSort on the provided fst.
|
static void |
Project.apply(Fst fst,
ProjectType pType)
Projects an fst onto its domain or range by either copying each arc's
input label to its output label or vice versa.
|
static void |
Compose.augment(int label,
Fst fst,
Semiring semiring)
Augments the labels of an Fst in order to use it for composition avoiding
multiple epsilon paths in the resulting Fst
Augment can be applied to both
Fst and
ImmutableFst, as immutable fsts hold an
additional null arc for that operation |
static Fst |
Compose.compose(Fst fst1,
Fst fst2,
Semiring semiring,
boolean sorted)
Computes the composition of two Fsts.
|
static Fst |
RmEpsilon.get(Fst fst)
Removes epsilon transitions from an fst.
|
static Fst |
Reverse.get(Fst fst)
Reverses an fst
|
static Fst |
Determinize.get(Fst fst)
Determinizes an fst.
|
static Fst |
Compose.get(Fst fst1,
Fst fst2,
Semiring semiring)
Computes the composition of two Fsts.
|
static Fst |
NShortestPaths.get(Fst fst,
int n,
boolean determinize)
Calculates the n-best shortest path from the initial to the final state.
|
static float[] |
NShortestPaths.shortestDistance(Fst fst)
Calculates the shortest distances from each state to the final
|
static void |
ExtendFinal.undo(Fst fst)
Undo of the extend operation
|
| Modifier and Type | Method and Description |
|---|---|
Fst |
SequiturImport.FSA.toFst()
convert our object to the Sphinx OpenFst data structure
|