src/transformers/models/roformer/tokenization_roformer_fast.py/RoFormerTokenizerFast/__getstate__
class RoFormerTokenizerFast:    def __getstate__(self):
        state = self.__dict__.copy()
        state["_tokenizer"].pre_tokenizer = BertPreTokenizer()
        return state