What I learned:
- How a chatbot works generally using tokenization, stemming, and a bag of words
- How to use a neural network to make a deep learning chatbot
• Split a sentence into a word
'how are you' -> ['how', 'are', 'you']
• reduce words into its root
['delivery', 'delivered', 'delivering'] -> ['deliv', 'deliv', 'deliv]
• counts occurence of words
input: how are you ['how', 'is', 'it', 'I', 'am', 'are', 'sell, 'you'] -> [1, 0, 0, 0, 0, 1, 0, 1]
Then, it trains our model with a nural network.
After all, the bot chooses one of the corresponding responses even though the exact input is not there.
{
"tag": "greeting",
"patterns": [
"Hi",
"Hello",
"What is up",
"How are you doing",
"Hey",
"yo",
"sup"
],
"responses":[
"Hey!",
"Hello",
"Hi there, how can I help?",
"Hi, what can I do for you today?",
"Hi, there"
]
}
You: How are you?
Bot: Hi, there
Download Python. Run these commands:
# Install Django
python -m pip install Django
# Move to the file directory
cd movie_recommendation
# Run the local server
python manage.py runserver
Video Link: Video
Followed this tutorial: Training our model, Speech to Text