MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / get_vocab

Method get_vocab

models/tokenization_moss.py:193–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

191 return len(self.encoder)
192
193 def get_vocab(self):
194 return dict(self.encoder, **self.added_tokens_encoder)
195
196 def bpe(self, token):
197 if token in self.cache:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected