def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def get_config(self):
    config = super().get_config()
    config['masked_tokens'] = tuple(self._masked_tokens)
    return config