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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user