def __init__(self, threshold=1e-2, **kwargs): """ Args: kwargs: args for SubstitutionProbability class lambda_table, alpha """ self._kwargs = kwargs self._threshold = threshold self._substitutor = Substitutor(threshold, **kwargs)
def setUp(self): self.s = Substitutor(threshold=1e-3, lambda_table=get_table(), alpha=-5.)