示例#1
0
def set_x_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser, add_positional_arg=False)

    add_data_param(parser, default=DEFAULT_DATA_PATH, data_type="stories and Rasa NLU ")

    parser.add_argument(
        "--no-prompt",
        action="store_true",
        help="Automatic yes or default options to prompts and oppressed warnings.",
    )

    parser.add_argument(
        "--production",
        action="store_true",
        help="Run Rasa X in a production environment.",
    )

    parser.add_argument(
        "--rasa-x-port",
        default=DEFAULT_RASA_X_PORT,
        type=int,
        help="Port to run the Rasa X server at.",
    )

    parser.add_argument(
        "--config-endpoint",
        type=str,
        help="Rasa X endpoint URL from which to pull the runtime config. This URL "
        "typically contains the Rasa X token for authentication. Example: "
        "https://example.com/api/config?token=my_rasa_x_token",
    )

    add_server_arguments(parser)
示例#2
0
文件: x.py 项目: psds01/rasa_custom
def set_x_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser, add_positional_arg=False)

    add_data_param(parser,
                   default=DEFAULT_DATA_PATH,
                   data_type="stories and Rasa NLU ")

    parser.add_argument(
        "--no-prompt",
        action="store_true",
        help=
        "Automatic yes or default options to prompts and oppressed warnings.",
    )

    parser.add_argument(
        "--production",
        action="store_true",
        help="Run Rasa X in a production environment.",
    )

    parser.add_argument(
        "--rasa-x-port",
        default=DEFAULT_RASA_X_PORT,
        type=int,
        help="Port to run the Rasa X server at.",
    )

    add_server_arguments(parser)
示例#3
0
def set_interactive_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser)
    add_config_param(parser)
    add_domain_param(parser)
    add_data_param(parser)
    add_out_param(parser)

    add_force_param(parser)

    add_skip_visualization_param(parser)

    add_server_arguments(parser)
示例#4
0
def set_interactive_core_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser)
    add_config_param(parser)
    add_domain_param(parser)
    add_stories_param(parser)
    add_out_param(parser)

    add_augmentation_param(parser)
    add_debug_plots_param(parser)
    add_dump_stories_param(parser)

    add_skip_visualization_param(parser)

    add_server_arguments(parser)
示例#5
0
def set_x_arguments(shell_parser: argparse.ArgumentParser):
    add_model_param(shell_parser, add_positional_arg=False)

    shell_parser.add_argument(
        "--no-prompt",
        action="store_true",
        help="Automatic yes or default options to prompts and oppressed warnings.",
    )

    shell_parser.add_argument(
        "--production",
        action="store_true",
        help="Run Rasa X in a production environment.",
    )

    shell_parser.add_argument(
        "--nlg",
        type=str,
        default="http://localhost:5002/api/nlg",
        help="Rasa NLG endpoint.",
    )

    shell_parser.add_argument(
        "--model-endpoint-url",
        type=str,
        default="http://localhost:5002/api/projects/default/models/tags/production",
        help="Rasa model endpoint URL.",
    )

    shell_parser.add_argument(
        "--project-path",
        type=str,
        default=".",
        help="Path to the Rasa project directory.",
    )

    shell_parser.add_argument(
        "--data-path",
        type=str,
        default="data",
        help=(
            "Path to the directory containing Rasa NLU training data "
            "and Rasa Core stories."
        ),
    )

    add_server_arguments(shell_parser)
示例#6
0
文件: x.py 项目: hungph-dev-ict/rasa
def set_x_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser, add_positional_arg=False)

    parser.add_argument(
        "--no-prompt",
        action="store_true",
        help=
        "Automatic yes or default options to prompts and oppressed warnings.",
    )

    parser.add_argument(
        "--production",
        action="store_true",
        help="Run Rasa X in a production environment.",
    )

    parser.add_argument(
        "--nlg",
        type=str,
        default="http://localhost:5002/api/nlg",
        help="Rasa NLG endpoint.",
    )

    parser.add_argument(
        "--model-endpoint-url",
        type=str,
        default=
        "http://localhost:5002/api/projects/default/models/tags/production",
        help="Rasa model endpoint URL.",
    )

    parser.add_argument(
        "--project-path",
        type=str,
        default=".",
        help="Path to the Rasa project directory.",
    )

    add_data_param(parser,
                   default=DEFAULT_DATA_PATH,
                   data_type="stories and Rasa NLU ")

    add_server_arguments(parser)
示例#7
0
def set_interactive_core_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser, model_name="Rasa Core", default=None)
    add_stories_param(parser)

    add_skip_visualization_param(parser)

    add_endpoint_param(
        parser,
        help_text="Configuration file for the model server and the connectors as a yml file.",
    )

    train_arguments = parser.add_argument_group("Train Arguments")
    add_config_param(train_arguments)
    add_domain_param(train_arguments)
    add_out_param(
        train_arguments, help_text="Directory where your models should be stored."
    )
    add_augmentation_param(train_arguments)
    add_debug_plots_param(train_arguments)
    add_dump_stories_param(train_arguments)
    add_server_arguments(parser)
示例#8
0
def set_shell_arguments(parser: argparse.ArgumentParser):
    add_model_param(parser)
    add_server_arguments(parser)