mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
fix beam search, _->-
This commit is contained in:
@@ -211,7 +211,7 @@ def get_args():
|
||||
attack_group = parser.add_mutually_exclusive_group(required=False)
|
||||
|
||||
search_choices = ', '.join(SEARCH_CLASS_NAMES.keys())
|
||||
attack_group.add_argument('--search', '-s', '--search_method', type=str,
|
||||
attack_group.add_argument('--search', '-s', '--search-method', type=str,
|
||||
required=False, default='greedy-word-wir',
|
||||
help=f'The search method to use. choices: {search_choices}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user