an easy implement of C(det(L)*G.T)) using openfst.