mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
formatting
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user