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

fix bugs and revise word to token matching scheme

This commit is contained in:
Jin Yong Yoo
2020-11-01 14:02:00 -05:00
parent 84c1681f34
commit 866301ba08
25 changed files with 117 additions and 115 deletions

View File

@@ -68,7 +68,7 @@ class Attack:
if not self.transformation:
raise NameError("Cannot instantiate attack without transformation")
self.is_black_box = (
getattr(transformation, "is_black_box", True) or search_method.is_black_box
getattr(transformation, "is_black_box", True) and search_method.is_black_box
)
if not self.search_method.check_transformation_compatibility(