src/transformers/models/marian/tokenization_marian.py/MarianTokenizer/_switch_to_target_mode
class MarianTokenizer:    def _switch_to_target_mode(self):
        self.current_spm = self.spm_target
        if self.separate_vocabs:
            self.current_encoder = self.target_encoder