mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
update github runner; setup ignore examples/*
This commit is contained in:
@@ -8,6 +8,10 @@ def has_letter(word):
|
||||
return False
|
||||
|
||||
|
||||
def is_one_word(word):
|
||||
return len(words_from_text(word)) == 1
|
||||
|
||||
|
||||
def add_indent(s_, numSpaces):
|
||||
s = s_.split("\n")
|
||||
# don't do anything for single-line stuff
|
||||
|
||||
Reference in New Issue
Block a user