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

Method eos_token

bert/tokenization_utils_base.py:726–731  ·  view source on GitHub ↗

End of sentence token (string). Log an error if used while not having been set.

(self)

Source from the content-addressed store, hash-verified

724
725 @property
726 def eos_token(self):
727 """ End of sentence token (string). Log an error if used while not having been set. """
728 if self._eos_token is None and self.verbose:
729 logger.error("Using eos_token, but it is not set yet.")
730 return None
731 return str(self._eos_token)
732
733 @property
734 def unk_token(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected