def add_subparser(subparsers: argparse._SubParsersAction, parents: List[argparse.ArgumentParser]): interactive_parser = subparsers.add_parser( "interactive", conflict_handler="resolve", parents=parents, help="Teach the bot with interactive learning") run.add_run_arguments(interactive_parser) train.add_general_arguments(interactive_parser) train.add_domain_param(interactive_parser) train.add_joint_parser_arguments(interactive_parser) _add_interactive_arguments(interactive_parser) interactive_parser.set_defaults(func=interactive)
def add_subparser(subparsers: argparse._SubParsersAction, parents: List[argparse.ArgumentParser]): interactive_parser = subparsers.add_parser( "interactive", conflict_handler="resolve", parents=parents, help="Teach the bot with interactive learning", ) run.add_run_arguments(interactive_parser) train.add_general_arguments(interactive_parser) train.add_domain_param(interactive_parser) train.add_joint_parser_arguments(interactive_parser) _add_interactive_arguments(interactive_parser) interactive_parser.set_defaults(func=interactive) interactive_subparsers = interactive_parser.add_subparsers() interactive_core_parser = interactive_subparsers.add_parser( "core", conflict_handler="resolve", parents=parents, formatter_class=argparse.ArgumentDefaultsHelpFormatter, help="Train a Rasa Core model with interactive learning", ) train.add_domain_param(interactive_core_parser) core_cli.add_general_args(interactive_core_parser) train.add_stories_param(interactive_core_parser) train.add_domain_param(interactive_core_parser) run.add_run_arguments(interactive_core_parser) _add_interactive_arguments(interactive_core_parser) train.add_general_arguments(interactive_core_parser) interactive_core_parser.set_defaults(func=interactive_core)