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

Method __init__

ts_rec_data.py:15–18  ·  view source on GitHub ↗
(self, tokenizer)

Source from the content-addressed store, hash-verified

13
14class Tokenizer:
15 def __init__(self, tokenizer):
16 self.tokenizer = tokenizer
17 self.bos_id: int = self.tokenizer.bos_token_id
18 self.eos_id: int = self.tokenizer.eos_token_id
19
20
21 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