githubharald / CTCDecoder

Connectionist Temporal Classification (CTC) decoding algorithms: best path, beam search, lexicon search, prefix search, and token passing. Implemented in Python.
https://towardsdatascience.com/3797e43a86c
MIT License
817 stars 182 forks source link

About blankIdx #21

Closed anhtuanluu closed 3 years ago

anhtuanluu commented 3 years ago

I have a question How can I use blankIdx value is zero? Thank you so much in advance

githubharald commented 3 years ago

with the current implementation, there is no option for this, blank is always assumed to be the last index. So either move the blank in the input tensor to the last position before feeding it into the decoder, or change the code to handle the blank at index zero.

githubharald commented 3 years ago

closing because of inactivity