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

choose your own filename for txt and csv

This commit is contained in:
Hanyu Liu
2020-07-18 19:04:06 -04:00
parent 410c77fea0
commit 36ebda0452
2 changed files with 28 additions and 7 deletions

View File

@@ -81,6 +81,13 @@ class AttackCommand(TextAttackCommand):
help="A directory to output results to.",
)
parser.add_argument(
"--txt-filename",
type=str,
required=False,
help="Specify the name of saved txt files."
)
parser.add_argument(
"--log-to-file",
"-l",
@@ -111,6 +118,13 @@ class AttackCommand(TextAttackCommand):
help="Enable logging to csv. Use --enable-csv plain to remove [[]] around words.",
)
parser.add_argument(
"--csv-filename",
type=str,
required=False,
help="Specify the name of saved csv files."
)
parser.add_argument(
"--interactive",
action="store_true",