(self, text)
| 172 | return self.tokenizer.decode(tokens, skip_special_tokens = True) |
| 173 | |
| 174 | def encode(self, text): |
| 175 | return self.tokenizer.encode(text).ids |
| 176 | |
| 177 | def tokenize(self, texts, context_length = 256, truncate_text = False): |
| 178 | if isinstance(texts, str): |
no outgoing calls
no test coverage detected