Пример #1
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")
Пример #2
0
def create_argument_parser():
    parser = argparse.ArgumentParser(description='parse incoming text')
    cli.add_server_arguments(parser)
    utils.add_logging_option_arguments(parser)

    return parser