src/transformers/models/marian/tokenization_marian.py/MarianTokenizer/_convert_token_to_id
class MarianTokenizer:    def _convert_token_to_id(self, token):
        return self.encoder.get(token, self.encoder[self.unk_token])