This repo provides an easy interface for the Special OpenFst operations through Python.
In addition to using Pywrapfst library that allows interacting with OpenFst, once compiled specializer library allows converting Vector type Fsts to sigma, rho, or phi fst types (as described in the OpenFST documentation).
The library is written in Cython for speedup and direct API of the C++ code of OpenFst. In order to compile it, the following files are required to be present in the directory:
These files can be found in the
src/extensions/python/ directory of the OpenFST source distribution.
Additionally, the following files must be on your
LD_LIBRARY_PATH both when you compile this library and also when you attempt to use it:
These files will likely be in
/usr/local/lib/fst on Linux or OSX. If they are not present on your installation of OpenFST, you may need to recompile OpenFST with the
Ensure that setup.py has the required fields.
python setup.py build_ext --inplace
Go to unitTest folder and Ensure pywrapfst is installed