mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
textfooler recipe working
This commit is contained in:
@@ -27,7 +27,7 @@ class GeneticAlgorithm(SearchMethod):
|
||||
self.give_up_if_no_improvement = give_up_if_no_improvement
|
||||
|
||||
def check_transformation_compatibility(self, transformation):
|
||||
return transformation.instance_of(WordSwap)
|
||||
return transformation.consists_of(WordSwap)
|
||||
|
||||
def _replace_at_index(self, pop_member, idx):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user