Basic Syntax Examples
There are basically two different types of links available.
Here is an example of the link to another file named Tutorial.
Here is an example of the link to a specific section named Installation.
Below is an example of Note!
Note
This project is under active development.
Here is also an example of code-block.
$ pip install openfst-python
Here is an example of python codes:
>>> import openfst_python as fst
>>> fst.compose()
['The composition result']
Here are some examples of showing the help() information.
- openfst_python.compose(ifst1, ifst2, compose_filter='auto', connect=True)
Constructively composes two FSTs.
This operation computes the composition of two FSTs. If A transduces string x to y with weight a and B transduces y to z with weight b, then their composition transduces string x to z with weight a otimes b. The output labels of the first transducer or the input labels of the second transducer must be sorted (or otherwise support appropriate matchers).
- Args:
ifst1: The first input FST. ifst2: The second input FST. compose_filter: A string matching a known composition filter; one of:
“alt_sequence”, “auto”, “match”, “no_match”, “null”, “sequence”, “trivial”.
connect: Should output be trimmed?
- Returns:
An FST.
See also: arcsort.
This is an autoclass.
- class openfst_python.Fst(arc_type='standard')
Constructs an empty FST.
- Args:
arc_type: A string indicating the arc type.
- Raises:
FstError: Unknown arc type.
- Raises:
FstOpError: operation failed.