Created
January 11, 2017 17:18
-
-
Save ugik/1df3c01b14606f78a155a321709b8dd5 to your computer and use it in GitHub Desktop.
part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 3 classes of training data | |
training_data = [] | |
training_data.append({"class":"greeting", "sentence":"how are you?"}) | |
training_data.append({"class":"greeting", "sentence":"how is your day?"}) | |
training_data.append({"class":"greeting", "sentence":"good day"}) | |
training_data.append({"class":"greeting", "sentence":"how is it going today?"}) | |
training_data.append({"class":"goodbye", "sentence":"have a nice day"}) | |
training_data.append({"class":"goodbye", "sentence":"see you later"}) | |
training_data.append({"class":"goodbye", "sentence":"have a nice day"}) | |
training_data.append({"class":"goodbye", "sentence":"talk to you soon"}) | |
training_data.append({"class":"sandwich", "sentence":"make me a sandwich"}) | |
training_data.append({"class":"sandwich", "sentence":"can you make a sandwich?"}) | |
training_data.append({"class":"sandwich", "sentence":"having a sandwich today?"}) | |
training_data.append({"class":"sandwich", "sentence":"what's for lunch?"}) | |
print ("%s sentences of training data" % len(training_data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment