src/transformers/models/speech_to_text_2/processing_speech_to_text_2.py/Speech2Text2Processor/as_target_processor
class Speech2Text2Processor:    def as_target_processor(self):
        """
        Temporarily sets the tokenizer for processing the input. Useful for encoding the labels when fine-tuning
        Speech2Text2.
        """
        self.current_processor = self.tokenizer
        yield
        self.current_processor = self.feature_extractor