Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 749 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 749 Bytes

Still WIP

Point of the fst wrapper is that thanks to using pybind11 it's very easy to write extensions.

Will be various python scripts that use the wrapper to do convenient things.

Usage

In lib you need a symlink to a copy of the pybind11 repository. Then modify CMakeLists.txt by setting the correct paths to include/ (you might also have to include the openfst root dir) and where the libfst* files are.

mkdir build && cmake .. && make

Then to install copy the .so to your sites directory, you can find it by calling python -m site.

To use your LD_LIBRARY_PATH needs to have the path to the openfst libraries.

from wrappedfst import WrappedFst

# do cool stuff, see bottom of lib/fst-wrapper.cc for available methods