def _convert_token_to_id(self, token: str) -> int:
        """Converts a token (str) to an id using the vocab."""
        sp_id = self.sp_model.piece_to_id(token)
        return sp_id + self.offset
Converts a token (str) to an id using the vocab.
dpkd/transformers/src/transformers/models/pegasus/tokenization_pegasus.py