1
0
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:
Jack Morris
2020-07-01 22:37:24 -04:00
parent 4297e3f411
commit 09502e4f8c
7 changed files with 47 additions and 42 deletions

View File

@@ -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