Id of the end of sentence token in the vocabulary. Log an error if used while not having been set.
(self)
| 819 | |
| 820 | @property |
| 821 | def eos_token_id(self): |
| 822 | """ Id of the end of sentence token in the vocabulary. Log an error if used while not having been set. """ |
| 823 | if self._eos_token is None: |
| 824 | return None |
| 825 | return self.convert_tokens_to_ids(self.eos_token) |
| 826 | |
| 827 | @property |
| 828 | def unk_token_id(self): |
nothing calls this directly
no test coverage detected