MCPcopy Create free account
hub / github.com/SooLab/CGFormer / vocab_size

Method vocab_size

bert/tokenization_utils.py:170–172  ·  view source on GitHub ↗

Size of the base vocabulary (without the added tokens)

(self)

Source from the content-addressed store, hash-verified

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. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected