Training Data Format

These docs are for version 1.x of Rasa Open Source.


User Guide

NLU

Core

Conversation Design

API Reference

Migrate from (beta)

Reference

Versions

viewing: 1.10.8

Training Data Format

You can provide training data as Markdown or as JSON, as a single file or as a directory containing multiple files. Note that Markdown is usually easier to work with.

Data Formats

Markdown is the easiest Rasa NLU format for humans to read and write. Examples are listed using the unordered list syntax, e.g. minus -, asterisk *, or plus +. Examples are grouped by intent, and entities are annotated as Markdown links.

## intent:check_balance
- what is my balance
- how much do I have on my [savings](source_account)

## intent:greet
- hey
- hello

JSON Format

The JSON format consists of a top-level object called rasa_nlu_data, with the keys common_examples, entity_synonyms and regex_features.

{
    "rasa_nlu_data": {
        "common_examples": [],
        "regex_features": [],
        "lookup_tables": [],
        "entity_synonyms": []
    }
}

Improving Intent Classification and Entity Recognition

Common examples have three components: text, intent and entities. The first two are strings while the last one is an array.


Notes

Images