Size of the base vocabulary (without the added tokens)
(self)
| 168 | |
| 169 | @property |
| 170 | def vocab_size(self) -> int: |
| 171 | """ Size of the base vocabulary (without the added tokens) """ |
| 172 | raise NotImplementedError |
| 173 | |
| 174 | def get_vocab(self): |
| 175 | """ Returns the vocabulary as a dict of {token: index} pairs. `tokenizer.get_vocab()[token]` is equivalent to `tokenizer.convert_tokens_to_ids(token)` when `token` is in the vocab. """ |
nothing calls this directly
no outgoing calls
no test coverage detected