src/transformers/models/barthez/tokenization_barthez.py/BarthezTokenizer/_tokenize
class BarthezTokenizer:    def _tokenize(self, text: str) -> List[str]:
        return self.sp_model.encode(text, out_type=str)