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

formatting

This commit is contained in:
uvafan
2020-07-03 14:29:32 -04:00
parent 05b32b87f0
commit 7cf2128fb2

View File

@@ -77,7 +77,9 @@ class Attack:
# Give search method access to functions for getting transformations and evaluating them
self.search_method.get_transformations = self.get_transformations
self.search_method.get_goal_results = self.goal_function.get_results_from_search_method
self.search_method.get_goal_results = (
self.goal_function.get_results_from_search_method
)
self.search_method.filter_transformations = self.filter_transformations
def get_transformations(self, current_text, original_text=None, **kwargs):