Test copy paste ipython notebook for debugging
In [1]:
import fst
v, n = fst.read_std('test_lat2nbest.fst'), 10
from pykaldi.utils import lattice_to_nbest, fst_shortest_path_to_lists
shortest = v.shortest_path(n)
print v[0].final
nbest = fst_shortest_path_to_lists(shortest)
from IPython.display import display, SVG
print nbest
display(shortest)
display(v)
In []: