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

Method register_subcommand

textattack/commands/augment_command.py:223–230  ·  view source on GitHub ↗
(main_parser: ArgumentParser)

Source from the content-addressed store, hash-verified

221
222 @staticmethod
223 def register_subcommand(main_parser: ArgumentParser):
224 parser = main_parser.add_parser(
225 "augment",
226 help="augment text data",
227 formatter_class=ArgumentDefaultsHelpFormatter,
228 )
229 parser = textattack.AugmenterArgs._add_parser_args(parser)
230 parser.set_defaults(func=AugmentCommand())

Callers

nothing calls this directly

Calls 2

AugmentCommandClass · 0.85
_add_parser_argsMethod · 0.45

Tested by

no test coverage detected