(self, tokens)
| 319 | return self.convert_tokens_to_ids(self.tokenize(text)) |
| 320 | |
| 321 | def decode(self, tokens): |
| 322 | text = "".join([self.decoder[token] for token in tokens]) |
| 323 | text = bytearray([self.byte_decoder[c] for c in text]).decode( |
| 324 | "utf-8", errors=self.errors |
| 325 | ) |
| 326 | return text |
| 327 | |
| 328 | def save_vocabulary(self, vocab_path): |
| 329 | """Save the tokenizer vocabulary and merge files to a directory.""" |
no outgoing calls
no test coverage detected