wenet-e2e / wenet

Production First and Production Ready End-to-End Speech Recognition Toolkit
https://wenet-e2e.github.io/wenet/
Apache License 2.0
4.14k stars 1.07k forks source link

report out of range error on the debug version #557

Closed flytair closed 3 years ago

flytair commented 3 years ago

https://github.com/wenet-e2e/wenet/blob/fbec55613f630f6a1e030e9cfe2c0508d0b5fd0f/runtime/core/decoder/ctc_wfst_beam_search.cc#L168

the error is gone, when changing the condition from: cur - 1 < alignment.size() to cur + 1 < alignment.size()

robin1001 commented 3 years ago

Great catch, Thanks