Closed gheyret closed 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]):
Hi @gheyret ,
You're right, thanks for identifying the question fixed in fa6683b60b57d1dc8fc27d16885f583752745d67
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]):