Id of the separation token in the vocabulary. E.g. separate context and query in an input sequence. Log an error if used while not having been set.
(self)
| 833 | |
| 834 | @property |
| 835 | def sep_token_id(self): |
| 836 | """ Id of the separation token in the vocabulary. E.g. separate context and query in an input sequence. Log an error if used while not having been set. """ |
| 837 | if self._sep_token is None: |
| 838 | return None |
| 839 | return self.convert_tokens_to_ids(self.sep_token) |
| 840 | |
| 841 | @property |
| 842 | def pad_token_id(self): |
nothing calls this directly
no test coverage detected