src/transformers/models/prophetnet/tokenization_prophetnet.py/ProphetNetTokenizer/_convert_token_to_id
class ProphetNetTokenizer:    def _convert_token_to_id(self, token: str):
        """Converts a token (str) in an id using the vocab."""
        return self.vocab.get(token, self.vocab.get(self.unk_token))