notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.0.x).

Version: Master/Unreleased

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 to
  • parents - 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 arguments
  • stories_only - If True, 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