def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def get_config(self):
    config = super().get_config()
    config['masked_tokens'] = tuple(self._masked_tokens)
    return config