rasa.cli.train
You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest documentation here.
add_subparser #
add\_subparser(subparsers: SubParsersAction, parents: List[argparse.ArgumentParser])->None
Add all training parsers.
Arguments:
subparsers- subparser we are going to attach toparents- Parent parsers, needed to ensure tree structure in argparse
run_training #
run\_training(args: argparse.Namespace, can\_exit:bool=False)-> Optional[Text]
Trains a model.
Arguments:
args- Namespace arguments.can_exit- IfTrue, the operation can sendsys.exitin the case training was not successful.
Returns:
Path to a trained model or None if training was not successful.
run_core_training #
run\_core\_training(args: argparse.Namespace, train\_path: Optional[Text]=None)-> Optional[Text]
Trains a Rasa Core model only.
Arguments:
args- Command-line arguments to configure training.train_path- Path where trained model but not unzipped model should be stored.
Returns:
Path to a trained model or None if training was not successful.
run_nlu_training #
run\_nlu\_training(args: argparse.Namespace, train\_path: Optional[Text]=None)-> Optional[Text]
Trains an NLU model.
Arguments:
args- Namespace arguments.train_path- Directory where models should be stored.
Returns:
Path to a trained model or None if training was not successful.