MCPcopy Index your code
hub / github.com/QData/TextAttack / register_subcommand

Method register_subcommand

textattack/commands/attack_command.py:39–46  ·  view source on GitHub ↗
(main_parser: ArgumentParser)

Source from the content-addressed store, hash-verified

37
38 @staticmethod
39 def register_subcommand(main_parser: ArgumentParser):
40 parser = main_parser.add_parser(
41 "attack",
42 help="run an attack on an NLP model",
43 formatter_class=ArgumentDefaultsHelpFormatter,
44 )
45 parser = CommandLineAttackArgs._add_parser_args(parser)
46 parser.set_defaults(func=AttackCommand())

Callers 1

mainFunction · 0.45

Calls 2

AttackCommandClass · 0.85
_add_parser_argsMethod · 0.45

Tested by

no test coverage detected