The error is :
_File "/home/user4/training/final_project/project6_nemo/LM/NeMo/eval_beamsearch_ngram_ctc.py", line 353, in main
pred_text = asr_model._wer.decoding.ctc_decoder_predictions_tensor(preds_tensor)[0][0]
File "/home/user4/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'EncDecCTCModelBPE' object has no attribute 'wer'. Did you mean: 'wer'?
I tried to go to line 353 and change _wer to wer , ( I don't know if this was right), but after that It calculated WER and CER but I get this error:
Beam search requires that consecutive ctc tokens are not folded
Hello, when I evaluate my ASR using this command, I get an error
The error is : _File "/home/user4/training/final_project/project6_nemo/LM/NeMo/eval_beamsearch_ngram_ctc.py", line 353, in main pred_text = asr_model._wer.decoding.ctc_decoder_predictions_tensor(preds_tensor)[0][0] File "/home/user4/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'EncDecCTCModelBPE' object has no attribute 'wer'. Did you mean: 'wer'?
I tried to go to line 353 and change _wer to wer , ( I don't know if this was right), but after that It calculated WER and CER but I get this error: Beam search requires that consecutive ctc tokens are not folded
please tell me how to fix the problem, thank you