k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
534 stars 107 forks source link

Fix bpe+char bug #433

Closed shaynemei closed 1 year ago

shaynemei commented 1 year ago

The current code will only append the ids of the last string in the contexts list. This line of code should be moved to the inner for loop instead.

csukuangfj commented 1 year ago

Thanks!