Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
120
class
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
tokenize
Method · 0.45
encode
Method · 0.45
compare_tokenizers
Function · 0.45
test-tokenizer-0.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected