skip to navigation
skip to content

pyfst 0.2.3

A Python interface to OpenFst.

A Python interface for the OpenFst library.

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
 
File Type Py Version Uploaded on Size
pyfst-0.2.3.tar.gz (md5) Source 2013-09-07 136KB