MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / __init__

Method __init__

data.py:14–17  ·  view source on GitHub ↗
(self, tokenizer)

Source from the content-addressed store, hash-verified

12
13class Tokenizer:
14 def __init__(self, tokenizer):
15 self.tokenizer = tokenizer
16 self.bos_id: int = self.tokenizer.bos_token_id
17 self.eos_id: int = self.tokenizer.eos_token_id
18
19
20 def encode(self, s: str, bos: bool, eos: bool) -> List[int]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected