MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / vocab_size

Method vocab_size

utils/text_encoder.py:221–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219
220 @property
221 def vocab_size(self):
222 return len(self._id_to_token)
223
224 def __len__(self):
225 return self.vocab_size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected