Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f895502

Browse files
Add files via upload
1 parent 11078f5 commit f895502

File tree

4 files changed

+576
-0
lines changed

4 files changed

+576
-0
lines changed

‎Chatterbot.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from chatterbot import ChatBot
2+
from chatterbot.trainers import ListTrainer
3+
4+
# Create a new chat bot named Charlie
5+
chatbot = ChatBot('FreeBirdsBot')
6+
7+
trainer = ListTrainer(chatbot)
8+
9+
trainer.train(['Hi','Hello','How are you?','I am fine and You?','Greate','What are you Doing?','nothing just roaming around.'])
10+
11+
while True:
12+
input_data = input("You- ")
13+
response = chatbot.get_response(input_data)
14+
print("FreeBirdsBot- ",response)
15+

‎Contextual Chatbot - NLP and Tensorflow.ipynb

Lines changed: 519 additions & 0 deletions
Large diffs are not rendered by default.

‎Untitled.png

293 KB
Loading[フレーム]

‎intents.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{"intents": [
2+
{"tag": "greeting",
3+
"patterns": ["Hi", "How are you", "Is anyone there?", "Hello", "Good day"],
4+
"responses": ["Hello, thanks for visiting", "Good to see you again", "Hi there, how can I help?"],
5+
"context_set": ""
6+
},
7+
{"tag": "goodbye",
8+
"patterns": ["Bye", "See you later", "Goodbye"],
9+
"responses": ["See you later, thanks for visiting", "Have a nice day", "Bye! Come back again soon."]
10+
},
11+
{"tag": "thanks",
12+
"patterns": ["Thanks", "Thank you", "That's helpful"],
13+
"responses": ["Happy to help!", "Any time!", "My pleasure"]
14+
},
15+
{"tag": "hours",
16+
"patterns": ["What hours are you open?", "What are your hours?", "When are you open?" ],
17+
"responses": ["We're open every day 9am-9pm", "Our hours are 9am-9pm every day"]
18+
},
19+
{"tag": "mopeds",
20+
"patterns": ["Which mopeds do you have?", "What kinds of mopeds are there?", "What do you rent?" ],
21+
"responses": ["We rent Yamaha, Piaggio and Vespa mopeds", "We have Piaggio, Vespa and Yamaha mopeds"]
22+
},
23+
{"tag": "payments",
24+
"patterns": ["Do you take credit cards?", "Do you accept Mastercard?", "Are you cash only?" ],
25+
"responses": ["We accept VISA, Mastercard and AMEX", "We accept most major credit cards"]
26+
},
27+
{"tag": "opentoday",
28+
"patterns": ["Are you open today?", "When do you open today?", "What are your hours today?"],
29+
"responses": ["We're open every day from 9am-9pm", "Our hours are 9am-9pm every day"]
30+
},
31+
{"tag": "rental",
32+
"patterns": ["Can we rent a moped?", "I'd like to rent a moped", "How does this work?" ],
33+
"responses": ["Are you looking to rent today or later this week?"],
34+
"context_set": "rentalday"
35+
},
36+
{"tag": "today",
37+
"patterns": ["today"],
38+
"responses": ["For rentals today please call 1-800-MYMOPED", "Same-day rentals please call 1-800-MYMOPED"],
39+
"context_filter": "rentalday"
40+
}
41+
]
42+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /