MCPcopy Create free account
hub / github.com/SooLab/CGFormer / sep_token_id

Method sep_token_id

bert/tokenization_utils_base.py:835–839  ·  view source on GitHub ↗

Id of the separation token in the vocabulary. E.g. separate context and query in an input sequence. Log an error if used while not having been set.

(self)

Source from the content-addressed store, hash-verified

833
834 @property
835 def sep_token_id(self):
836 """ Id of the separation token in the vocabulary. E.g. separate context and query in an input sequence. Log an error if used while not having been set. """
837 if self._sep_token is None:
838 return None
839 return self.convert_tokens_to_ids(self.sep_token)
840
841 @property
842 def pad_token_id(self):

Callers

nothing calls this directly

Calls 1

convert_tokens_to_idsMethod · 0.80

Tested by

no test coverage detected