Id of the beginning of sentence token in the vocabulary. Log an error if used while not having been set.
(self)
| 812 | |
| 813 | @property |
| 814 | def bos_token_id(self): |
| 815 | """ Id of the beginning of sentence token in the vocabulary. Log an error if used while not having been set. """ |
| 816 | if self._bos_token is None: |
| 817 | return None |
| 818 | return self.convert_tokens_to_ids(self.bos_token) |
| 819 | |
| 820 | @property |
| 821 | def eos_token_id(self): |
nothing calls this directly
no test coverage detected