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](/content/docs/index.html).

#### add\_subparser [\#](https://legacy-docs-oss.rasa.com/docs/rasa/next/reference/rasa/cli/data/\#add_subparser "Direct link to heading")

Copy

def 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 [\#](https://legacy-docs-oss.rasa.com/docs/rasa/next/reference/rasa/cli/data/\#split_nlu_data "Direct link to heading")

Copy

def 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

#### split\_stories\_data [\#](https://legacy-docs-oss.rasa.com/docs/rasa/next/reference/rasa/cli/data/\#split_stories_data "Direct link to heading")

Copy

def split\_stories\_data(args: argparse.Namespace)->None

Load data from a file path and split stories into test and train examples.

**Arguments**:

- `args` \- Commandline arguments
