A Python interface to OpenFst.
Project description
A Python interface for the OpenFst library.
Documentation: http://pyfst.github.io
Source code: https://github.com/vchahun/pyfst
Example usage:
import fst t = fst.Transducer() 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.2.3.tar.gz
(140.3 kB
view hashes)