Id of the padding token in the vocabulary. Log an error if used while not having been set.
(self)
| 840 | |
| 841 | @property |
| 842 | def pad_token_id(self): |
| 843 | """ Id of the padding token in the vocabulary. Log an error if used while not having been set. """ |
| 844 | if self._pad_token is None: |
| 845 | return None |
| 846 | return self.convert_tokens_to_ids(self.pad_token) |
| 847 | |
| 848 | @property |
| 849 | def pad_token_type_id(self): |
nothing calls this directly
no test coverage detected