(self, tokenizer)
| 12 | |
| 13 | class 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]: |
nothing calls this directly
no outgoing calls
no test coverage detected