Returns a tokenized string.
(self, text)
| 104 | return vocab |
| 105 | |
| 106 | def _tokenize(self, text): |
| 107 | """Returns a tokenized string.""" |
| 108 | return self.sp_model.encode(text, out_type=str) |
| 109 | |
| 110 | def _convert_token_to_id(self, token): |
| 111 | """Converts a token (str) in an id using the vocab.""" |
no test coverage detected