Spaces:
Sleeping
Sleeping
File size: 798 Bytes
4a1df2e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
"""
BenchmarkRecipeCommand class
==============================
"""
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
from textattack.commands import TextAttackCommand
class BenchmarkRecipeCommand(TextAttackCommand):
"""The TextAttack benchmark recipe module:
A command line parser to benchmark a recipe from user
specifications.
"""
def run(self, args):
raise NotImplementedError("Cannot benchmark recipes yet - stay tuned!!")
@staticmethod
def register_subcommand(main_parser: ArgumentParser):
parser = main_parser.add_parser(
"benchmark-recipe",
help="benchmark a recipe",
formatter_class=ArgumentDefaultsHelpFormatter,
)
parser.set_defaults(func=BenchmarkRecipeCommand())
|