MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / __init__

Method __init__

utils/tokenizer.py:35–38  ·  view source on GitHub ↗
(self, encoding_name: str = "cl100k_base")

Source from the content-addressed store, hash-verified

33 """Tiktoken wrapper."""
34
35 def __init__(self, encoding_name: str = "cl100k_base"):
36 import tiktoken
37 self._encoding = tiktoken.get_encoding(encoding_name)
38 self.encoding_name = encoding_name
39
40 def encode(self, text: str) -> List[int]:
41 return self._encoding.encode(text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected