Skip to content

Creating Training Data

Jack edited this page Aug 19, 2018 · 3 revisions

For a more detailed view on best type of training data to supply your best bet is to head straight to Rasa NLU and check out the official documentation. RT plans to make it all super easier however.

  1. Creating an agent
  2. Create Intents
  3. Create expressions
  4. Create Entities (Optional)

Creating an agent.

All training data starts with an Agent. You can think of agents as individual chatbots. So head over to the agents tab

An arrow pointing to the agents tab

Once you are there you can create a new agent on the right hand side. The only required field is the agent name.

The minimum values required for making a new agent.

Add some intents

Every time a user asks the chatbot a question the intent behind the question is attempted to be found. This is where we train our chatbot to guess the correct intent.

Firsly add some intents below like so

The intents page

You can add as many intents as you like. Currently they can be any name / prefixes. However we suggest using characters which do not need to be URL encoded such as #'s.

Add some expressions

Expressions should be examples of how the user would trigger this intent. As stated above please refer to RASA NLU's official documentation on the best types of expressions to create.

You can add expressions in three ways.

  1. One at a time pressing enter to add them.
  2. Multiple at once by pasting them one line at a time.
  3. Using a variation generator. This should be used with care however can be useful if you'd like to create alot of training data which switches out a couple of words.

https://user-images.githubusercontent.com/1907451/44312381-e687bf00-a3ee-11e8-9d72-3283898ff782.png

Adding Entities.

Entities can be understood more over at Rasa NLU docs.

Entities represent a class of object or a data type that is relevant to a user's purpose. By recognizing the entities that are mentioned in the user's input, the Watson Assistant Rasa Talk service can choose the specific actions to take to fulfill an intent.

You can add them on the entities tab.

Synonyms and Variations

S&V's are not massively important and are rarely likely to be required / useful.

Adding to expressions.

Now that you've added some entities you can start to add them to expressions. To do this.

  1. Highlight a word in an expression. becareful to not highlight any extra whitespace as it will be added
  2. Once the popup menu shows up simply select the entity you wish to add and done!