Loading fairseq/dictionary.py +1 −1 Changes for fairseq/dictionary.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ class Dictionary(object): sent = ' '.join(token_string(i) for i in tensor if i != self.eos()) if bpe_symbol is not None: sent = sent.replace(bpe_symbol, '') sent = (sent + ' ').replace(bpe_symbol, '').rstrip() return sent def unk_string(self, escape=False): Loading Loading
fairseq/dictionary.py +1 −1 Changes for fairseq/dictionary.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ class Dictionary(object): sent = ' '.join(token_string(i) for i in tensor if i != self.eos()) if bpe_symbol is not None: sent = sent.replace(bpe_symbol, '') sent = (sent + ' ').replace(bpe_symbol, '').rstrip() return sent def unk_string(self, escape=False): Loading