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