examples/flax/language-modeling/run_bart_dlm_flax.py/FlaxDataCollatorForBartDenoisingLM/__post_init__
class FlaxDataCollatorForBartDenoisingLM:    def __post_init__(self):
        if self.tokenizer.mask_token is None or self.tokenizer.eos_token is None:
            raise ValueError(
                "This tokenizer does not have a mask token or eos token token which is necessary for denoising"
                " language modeling. "
            )