src/transformers/pipelines/text_classification.py/TextClassificationPipeline/preprocess
class TextClassificationPipeline:    def preprocess(self, inputs, **tokenizer_kwargs) -> Dict[str, GenericTensor]:
        return_tensors = self.framework
        return self.tokenizer(inputs, return_tensors=return_tensors, **tokenizer_kwargs)