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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user