-
Notifications
You must be signed in to change notification settings - Fork 87
Creating Training Data
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.
- Creating an agent
- Create Intents
- Create expressions
- Create Entities (Optional)
All training data starts with an Agent
. You can think of agents as individual chatbots. So head over 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.
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
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.
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.
- One at a time pressing enter to add them.
- Multiple at once by pasting them one line at a time.
- 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
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.
S&V's are not massively important and are rarely likely to be required / useful.
Now that you've added some entities you can start to add them to expressions. To do this.
- Highlight a word in an expression. becareful to not highlight any extra whitespace as it will be added
- Once the popup menu shows up simply select the entity you wish to add and done!