For example, in the following scenario: Input sequence: "Alex went to store" Target sequence: "Alex went to the store" Decoding from model: "UNK went to the store" this logic would replace the UNK token in the decoding with Alex .