src/transformers/models/bartpho/tokenization_bartpho.py/BartphoTokenizer/_convert_token_to_id
class BartphoTokenizer:    def _convert_token_to_id(self, token):
        """Converts a token (str) in an id using the vocab."""
        if token in self.fairseq_tokens_to_ids:
            return self.fairseq_tokens_to_ids[token]
        else:
            return self.unk_token_id