Skip to content

Commit

Permalink
[src] Allow reading const Fst through ReadFstKaldiGeneric
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmVikrant authored and danpovey committed Jan 21, 2020
1 parent 0627644 commit 33255ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/align-mapped.cc
Expand Up @@ -34,6 +34,7 @@ int main(int argc, char *argv[]) {
typedef kaldi::int32 int32;
using fst::SymbolTable;
using fst::VectorFst;
using fst::Fst;
using fst::StdArc;

const char *usage =
Expand Down Expand Up @@ -75,7 +76,7 @@ int main(int argc, char *argv[]) {
TransitionModel trans_model;
ReadKaldiObject(model_in_filename, &trans_model);

VectorFst<StdArc> *lex_fst = fst::ReadFstKaldi(lex_in_filename);
Fst<StdArc> *lex_fst = fst::ReadFstKaldiGeneric(lex_in_filename);
// ownership will be taken by gc.

std::vector<int32> disambig_syms;
Expand Down

1 comment on commit 33255ed

@OhmVikrant
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a part of the discussion (#3860)

Please sign in to comment.