Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AQ-MedAI/MedMemoryBench
/ decode
Method
decode
utils/tokenizer.py:43–44 ·
view source on GitHub ↗
(self, tokens: List[int])
Source
from the content-addressed store, hash-verified
41
return
self._encoding.encode(text)
42
43
def
decode(self, tokens: List[int]) -> str:
44
return
self._encoding.decode(tokens)
45
46
47
class
CharEstimationTokenizer:
Callers
15
decode
Method · 0.45
get_blip_caption
Function · 0.45
img2base64
Function · 0.45
_truncate_to_token_limit
Method · 0.45
truncate_docs_to_context
Method · 0.45
_truncate_to_tokens
Method · 0.45
_split_text_into_chunks
Method · 0.45
_truncate_to_tokens
Method · 0.45
_truncate_to_tokens
Method · 0.45
_split_text_into_chunks
Method · 0.45
_split_text_into_chunks
Method · 0.45
_truncate_to_tokens
Method · 0.45
Calls
no outgoing calls
Tested by
2
setUpClass
Method · 0.36
test_search_raw_memories_invalid_cursor
Function · 0.36