

def main(args):
    L = fst.read(args.fst_file)
    for state in L:
        for arc in state:
            arc.weight = L.SEMIRING(0.0)
    L.write(args.fst_file, keep_isyms=True, keep_osyms=True)

dataset/ETHPy150Open rizar/attention-lvcsr/bin/remove_fst_weights.py main/original