Esempio n. 1
0
File: run.py Progetto: jayceyxc/rasa
def add_run_arguments(parser: argparse.ArgumentParser):
    from rasa.core.cli.run import add_run_arguments
    from rasa.core.cli.arguments import add_logging_option_arguments

    add_run_arguments(parser)
    add_model_param(parser)
    add_logging_option_arguments(parser)
Esempio n. 2
0
def add_run_arguments(parser: argparse.ArgumentParser):
    from rasa_core.cli.run import add_run_arguments

    add_run_arguments(parser)
    add_model_param(parser)

    parser.add_argument(
        "--credentials",
        type=str,
        default="credentials.yml",
        help="Authentication credentials for the connector as a yml file")
Esempio n. 3
0
def _add_nlu_arguments(parser: argparse.ArgumentParser):
    from rasa_nlu.cli.server import add_server_arguments

    add_server_arguments(parser)
    parser.add_argument('--path',
                        default=DEFAULT_MODELS_PATH,
                        type=str,
                        help="Working directory of the server. Models are"
                        "loaded from this directory and trained models "
                        "will be saved here")

    add_model_param(parser, "NLU")
Esempio n. 4
0
def _add_core_arguments(parser: Union[argparse.ArgumentParser,
                                      argparse._ActionsContainer]):
    from rasa_core.cli.test import add_evaluation_arguments

    add_evaluation_arguments(parser)
    add_model_param(parser, "Core")
    add_stories_param(parser, "test")

    parser.add_argument(
        '--url',
        type=str,
        help="If supplied, downloads a story file from a URL and "
             "trains on it. Fetches the data by sending a GET request "
             "to the supplied URL.")