Vesa Siivola
Vesa Siivola
There's a full c++ implementation for grammar networks in production, but that uses some code that I cannot share. It would take a while to separate the shareable parts from...
htk2fst.py: ``` #/usr/bin/env python3 import codecs import io import math import operator import re import sys def htk2mitfst(in_iter, lm_scale=1.0, ac_scale=None, store_lm_prob_out_labels=False): yield "#FSTBasic MaxPlus" for l in in_iter: m =...
I noticed on mistake in this pull request. When running without open phone loop for confidence, it prunes tokens in nonfinal states in the wrong place. Fixed code committed....