mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
add kuleshov recipe; rename attack_methods --> search_methods
This commit is contained in:
@@ -216,7 +216,7 @@ def html_table_from_rows(rows, title=None, header=None, style_dict=None):
|
||||
return table_html
|
||||
|
||||
def has_letter(word):
|
||||
""" Returns true if `word` contains at least one character in [A-Za-z].
|
||||
""" Returns true if `word` contains at least one character in [A-Za-z]. """
|
||||
for c in word:
|
||||
if c.isalpha(): return True
|
||||
return False
|
||||
Reference in New Issue
Block a user