Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLG cannot be determinized after converting to openfst format #1221

Open
wangtiance opened this issue Jul 11, 2023 · 0 comments
Open

HLG cannot be determinized after converting to openfst format #1221

wangtiance opened this issue Jul 11, 2023 · 0 comments

Comments

@wangtiance
Copy link
Contributor

wangtiance commented Jul 11, 2023

I generated HLG following the procedures in
https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/local/compile_hlg_using_openfst.py

Now, since k2 does not support minimization, I tried converting the resulting HLG to fst format and do det and min.

HLG_fst = kaldifst.utils.k2_to_openfst(HLG, olabels='aux_labels')
kaldifst.determinize_star(HLG_fst)

But I get the error:

  • RuntimeError: /project/kaldifst/csrc/determinize-star-inl.h:void fst::DeterminizerStar::ProcessTransition(fst::DeterminizerStar::OutputStateId, fst::DeterminizerStar::Label, std::vector<fst::DeterminizerStar::Element>*) [with F = fst::VectorFst<fst::ArcTpl<fst::TropicalWeightTpl > >; fst::DeterminizerStar::OutputStateId = int; fst::DeterminizerStar::Label = int]:966
    [E] FST was not functional -> not determinizable

However, based on the definition here, I don't see why HLG is not functional. Could someone help? Thanks!
https://www.openfst.org/twiki/bin/view/FST/FstGlossary#FunctionalDef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant