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

Method eos_token_id

bert/tokenization_utils_base.py:821–825  ·  view source on GitHub ↗

Id of the end of sentence token in the vocabulary. Log an error if used while not having been set.

(self)

Source from the content-addressed store, hash-verified

819
820 @property
821 def eos_token_id(self):
822 """ Id of the end of sentence token in the vocabulary. Log an error if used while not having been set. """
823 if self._eos_token is None:
824 return None
825 return self.convert_tokens_to_ids(self.eos_token)
826
827 @property
828 def unk_token_id(self):

Callers

nothing calls this directly

Calls 1

convert_tokens_to_idsMethod · 0.80

Tested by

no test coverage detected