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

rename validator method, attack params optional

This commit is contained in:
uvafan
2020-05-19 10:07:00 -04:00
parent 8c265fe23f
commit f1d0017a53
7 changed files with 15 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ class Attack:
"""
def __init__(self, goal_function, constraints, transformation, search_method):
def __init__(self, goal_function=None, constraints=[], transformation=None, search_method=None):
""" Initialize an attack object. Attacks can be run multiple times.
"""
self.search_method = search_method