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

Add "-log-to-file" argument

Add "-log-to-file" argument to switch between saving/ not saving logs
This commit is contained in:
Hanyu-Liu-123
2020-06-21 17:20:58 -04:00
committed by GitHub
parent 4bcc2deb3a
commit 66e28a35c6

View File

@@ -72,6 +72,13 @@ class AttackCommand(TextAttackCommand):
help="A directory to output results to.",
)
parser.add_argument(
"--log-to-file",
"-l",
help="Save logs to TextAttack/outputs/~",
action="store_true",
)
parser.add_argument(
"--enable-visdom", action="store_true", help="Enable logging to visdom."
)