Id of the classification token in the vocabulary. E.g. to extract a summary of an input sequence leveraging self-attention along the full depth of the model. Log an error if used while not having been set.
(self)
| 852 | |
| 853 | @property |
| 854 | def cls_token_id(self): |
| 855 | """ Id of the classification token in the vocabulary. E.g. to extract a summary of an input sequence leveraging self-attention along the full depth of the model. Log an error if used while not having been set. """ |
| 856 | if self._cls_token is None: |
| 857 | return None |
| 858 | return self.convert_tokens_to_ids(self.cls_token) |
| 859 | |
| 860 | @property |
| 861 | def mask_token_id(self): |
nothing calls this directly
no test coverage detected