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

Method __init__

utils/tokenizer.py:50–51  ·  view source on GitHub ↗
(self, chars_per_token: float = 3.0)

Source from the content-addressed store, hash-verified

48 """Character estimation Tokenizer (fallback)."""
49
50 def __init__(self, chars_per_token: float = 3.0):
51 self.chars_per_token = chars_per_token
52
53 def encode(self, text: str) -> List[int]:
54 # Return pseudo list of estimated token count

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected