icefall
icefall copied to clipboard
Fixed the issue of errors in fully silent sentences during evaluation.
When recognizing, if a sentence is completely silent, blank skip will reduce all frame. Exception occurs:
Traceback (most recent call last):
File "/data/k2/icefall/egs/xxxx/Rework/./pruned_transducer_stateless7_ctc_bs/ctc_guide_decode_bs.py", line 847, in
Add code to fix (ensure at least one frame exist after frame reduce).
@yfyeung Could you help review this PR?
@drawfish Thanks for your suggestion. This model is in the LibriSpeech, whose test set does not have entirely silent sentences. IMO, you should modify the code of the export model.
@yfyeung
Shall we merge this? Do you have any other comments?