MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / id_to_token

Method id_to_token

moss_tts_delay/llama_cpp/processor.py:59–60  ·  view source on GitHub ↗
(self, token_id: int)

Source from the content-addressed store, hash-verified

57 return self._tok.get_vocab_size()
58
59 def id_to_token(self, token_id: int) -> str | None:
60 return self._tok.id_to_token(token_id)
61
62
63def _get_special_token_str(tokenizer: Tokenizer, token_id: int) -> str:

Callers 1

_get_special_token_strFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected