def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def get_config(self):
    config = super().get_config()
    config['masked_tokens'] = tuple(self._masked_tokens)
    return config