MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / encode

Method encode

smallthinker/tests/test-tokenizer-random.py:122–123  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

120class Tokenizer:
121
122 def encode(self, text: str) -> list[int]:
123 raise NotImplementedError
124
125 def decode(self, ids: list[int]) -> str:
126 raise NotImplementedError

Callers 5

__init__Method · 0.45
tokenizeMethod · 0.45
encodeMethod · 0.45
compare_tokenizersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected