1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

format & static method

This commit is contained in:
Jack Morris
2020-06-29 14:25:17 -04:00
parent db5307432f
commit 693927c580
5 changed files with 40 additions and 36 deletions

View File

@@ -15,7 +15,7 @@ class LanguageModelConstraint(ABC, Constraint):
text or the most recent
"""
def __init__(self, max_log_prob_diff=None, compare_against_original=False):
def __init__(self, max_log_prob_diff=None, compare_against_original=True):
if max_log_prob_diff is None:
raise ValueError("Must set max_log_prob_diff")
self.max_log_prob_diff = max_log_prob_diff