[src] Fix bug in fstrmymbols RE recent const-fst changes (thanks: Jon Nichols); other...
[processor-sdk/kaldi.git] / src / fstbin / fstrmsymbols.cc
index e713d9e149f46917024e931aac39bd71182be8ed..a365b016e5815bc76c88ecb0e487d24d92511f91 100644 (file)
@@ -136,7 +136,8 @@ int main(int argc, char *argv[]) {
         fst_rxfilename = po.GetOptArg(2),
         fst_wxfilename = po.GetOptArg(3);
 
         fst_rxfilename = po.GetOptArg(2),
         fst_wxfilename = po.GetOptArg(3);
 
-    VectorFst<StdArc> *fst = ReadFstKaldi(fst_rxfilename);
+    VectorFst<StdArc> *fst = CastOrConvertToVectorFst(
+        ReadFstKaldiGeneric(fst_rxfilename));
 
     std::vector<int32> disambig_in;
     if (!ReadIntegerVectorSimple(disambig_rxfilename, &disambig_in))
 
     std::vector<int32> disambig_in;
     if (!ReadIntegerVectorSimple(disambig_rxfilename, &disambig_in))