Cython wrapper of the OpenFst library.
Project description
A Cython wrapper of the OpenFst library.
Requires OpenFst 1.3
Example usage:
from fst import SimpleFst t = SimpleFst() t.add_arc(0, 1, 'a', 'A', 0.5) t.add_arc(0, 1, 'b', 'B', 1.5) t.add_arc(1, 2, 'c', 'C', 2.5) t[2].final = 3.5 t.shortest_path() # 2 -(a:A/0.5)-> 1 -(c:C/2.5)-> 0/3.5
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfst-0.1.1.tar.gz
(118.8 kB
view hashes)