kaldi-asr / kaldi

kaldi-asr/kaldi is the official location of the Kaldi project.
http://kaldi-asr.org
Other
14.27k stars 5.32k forks source link

Running lattice rescoring in kaldi get coredumpe? #4719

Open trangtv57 opened 2 years ago

trangtv57 commented 2 years ago

hi All, When I try to run kaldi/egs/wsj/s5/local/pytorchnn/run_nnlm.sh file for rescore, first script (lmrescore_nbest_pytorchnn.sh) rescore with n-best is ok. But when I try to use lattic rescoring (lmrescore_lattice_pytorchnn.sh) it's stop and get core dump error: 20fa42712d26e378ba37 I don't have any idea why it's happen and how to fix. Pls help.Tks

danpovey commented 2 years ago

lattice-path-cover.cc is not a frequently-used program. The assertion: KALDI_ASSERT(clat.NumStates() > 1); at its line 41 does not look right to me. Compact lattices can legitimately have just 1 state, even nonempty ones. You could try just removing the assertion and see if it still runs OK. If so you could make a PR.

trangtv57 commented 2 years ago

tks @danpovey , I will check then report result later.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale by a bot solely because it has not had recent activity. Please add any comment (simply 'ping' is enough) to prevent the issue from being closed for 60 more days if you believe it should be kept open.