notice
This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
Version: 2.x
rasa.cli.data
add_subparser
add_subparser(subparsers: SubParsersAction, parents: List[argparse.ArgumentParser]) -> None
Add all data parsers.
Arguments:
subparsers
- subparser we are going to attach toparents
- Parent parsers, needed to ensure tree structure in argparse
split_nlu_data
split_nlu_data(args: argparse.Namespace) -> None
Load data from a file path and split the NLU data into test and train examples.
Arguments:
args
- Commandline arguments
validate_files
validate_files(args: argparse.Namespace, stories_only: bool = False) -> None
Validates either the story structure or the entire project.
Arguments:
args
- Commandline argumentsstories_only
- IfTrue
, only the story structure is validated.
validate_stories
validate_stories(args: argparse.Namespace) -> None
Validates that training data file content conforms to training data spec.
Arguments:
args
- Commandline arguments