Alexander-H-Liu / End-to-end-ASR-Pytorch

This is an open source project (formerly named Listen, Attend and Spell - PyTorch Implementation) for end-to-end ASR implemented with Pytorch, the well known deep learning toolkit.
MIT License
1.18k stars 317 forks source link

Error in CharacterTextEncoder #51

Closed gheyret closed 4 years ago

gheyret commented 4 years ago

Hi, In decode method in CharacterTextEncoder have error. Line 65: if idx == self.pad_idx or (ignore_repeat and t > 0 and idx == vocabs[t-1]):

I think must be: if idx == self.pad_idx or (ignore_repeat and t > 0 and idx == idxs[t-1]):

Alexander-H-Liu commented 4 years ago

Hi @gheyret ,

You're right, thanks for identifying the question fixed in fa6683b60b57d1dc8fc27d16885f583752745d67