    def _convert_token_to_id(self, token):
        """ Converts a token (str) in an id using the vocab. """
        return self.sp_tokenizer[token]
Converts a token (str) in an id using the vocab.
tokenization_chatglm.py