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

Is it a bug on line 88 in preprocess.py #43

Closed jackaduma closed 4 years ago

jackaduma commented 4 years ago
            if mode == "word":
                tmp.append(2)
            else:
                tmp.append(table['<unk>'])

I think it should be

            if mode != "word":
                tmp.append(2)
            else:
                tmp.append(table['<unk>'])
Alexander-H-Liu commented 4 years ago

Hi,

Since preprocess.py was removed after last rebase, I'm closing this issue