rasa/core/train.py
def create_argument_parser():
    """Parse all the command line arguments for the training script."""
    from rasa.core import cli

    parser = argparse.ArgumentParser(
        description='Train a dialogue model for Rasa Core. '
                    'The training will use your conversations '
                    'in the story training data format and '
                    'your domain definition to train a dialogue '
                    'model to predict a bots actions.')
    parent_parser = argparse.ArgumentParser(add_help=False)
    cli.train.add_general_args(parent_parser)

    subparsers = parser.add_subparsers(
        help='Training mode of core.',
        dest='mode')
    subparsers.required = True

    train_parser = subparsers.add_parser(
        'default',
        help='train a dialogue model',
        parents=[parent_parser])
    compare_parser = subparsers.add_parser(
        'compare',
        help='train multiple dialogue models to compare '
             'policies',
        parents=[parent_parser])
    interactive_parser = subparsers.add_parser(
        'interactive',
        help='teach the bot with interactive learning',
        parents=[parent_parser])

    cli.train.add_compare_args(compare_parser)
    cli.train.add_interactive_args(interactive_parser)
    cli.train.add_train_args(train_parser)

    return parser
Parse all the command line arguments for the training script.
Parse all the command line arguments for the training script.
Parse all the command line arguments for the training script .
def create_argument_parser():
    from rasa.core import cli
    parser = argparse.ArgumentParser(
        description='Train a dialogue model for Rasa Core. '
                    'The training will use your conversations '
                    'in the story training data format and '
                    'your domain definition to train a dialogue '
                    'model to predict a bots actions.')
    parent_parser = argparse.ArgumentParser(add_help=False)
    cli.train.add_general_args(parent_parser)
    subparsers = parser.add_subparsers(
        help='Training mode of core.',
        dest='mode')
    subparsers.required = True
    train_parser = subparsers.add_parser(
        'default',
        help='train a dialogue model',
        parents=[parent_parser])
    compare_parser = subparsers.add_parser(
        'compare',
        help='train multiple dialogue models to compare '
             'policies',
        parents=[parent_parser])
    interactive_parser = subparsers.add_parser(
        'interactive',
        help='teach the bot with interactive learning',
        parents=[parent_parser])
    cli.train.add_compare_args(compare_parser)
    cli.train.add_interactive_args(interactive_parser)
    cli.train.add_train_args(train_parser)
    return parser
def create_argument_parser ( ) : from rasa . core import cli parser = argparse . ArgumentParser ( description = 'Train a dialogue model for Rasa Core. ' 'The training will use your conversations ' 'in the story training data format and ' 'your domain definition to train a dialogue ' 'model to predict a bots actions.' ) parent_parser = argparse . ArgumentParser ( add_help = False ) cli . train . add_general_args ( parent_parser ) subparsers = parser . add_subparsers ( help = 'Training mode of core.' , dest = 'mode' ) subparsers . required = True train_parser = subparsers . add_parser ( 'default' , help = 'train a dialogue model' , parents = [ parent_parser ] ) compare_parser = subparsers . add_parser ( 'compare' , help = 'train multiple dialogue models to compare ' 'policies' , parents = [ parent_parser ] ) interactive_parser = subparsers . add_parser ( 'interactive' , help = 'teach the bot with interactive learning' , parents = [ parent_parser ] ) cli . train . add_compare_args ( compare_parser ) cli . train . add_interactive_args ( interactive_parser ) cli . train . add_train_args ( train_parser ) return parser
Parse all the command line arguments for the training script.
Parse all the command line arguments for the training script .
"""Parse all the command line arguments for the training script."""