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

Method unk_token

bert/tokenization_utils_base.py:734–739  ·  view source on GitHub ↗

Unknown token (string). Log an error if used while not having been set.

(self)

Source from the content-addressed store, hash-verified

732
733 @property
734 def unk_token(self):
735 """ Unknown token (string). Log an error if used while not having been set. """
736 if self._unk_token is None and self.verbose:
737 logger.error("Using unk_token, but it is not set yet.")
738 return None
739 return str(self._unk_token)
740
741 @property
742 def sep_token(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected