https://github.com/abirsaha111/building-a-simple-chatbot-in-python-using-nltk
Building a Simple Chatbot from Scratch in Python (using NLTK)
https://github.com/abirsaha111/building-a-simple-chatbot-in-python-using-nltk
article artificial-intelligence chatbot machine-learning nlp nltk-python python
Last synced: about 1 month ago
JSON representation
Building a Simple Chatbot from Scratch in Python (using NLTK)
- Host: GitHub
- URL: https://github.com/abirsaha111/building-a-simple-chatbot-in-python-using-nltk
- Owner: AbirSaha111
- License: mit
- Created: 2023-03-04T19:29:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T19:52:55.000Z (over 3 years ago)
- Last Synced: 2025-02-25T13:41:47.566Z (over 1 year ago)
- Topics: article, artificial-intelligence, chatbot, machine-learning, nlp, nltk-python, python
- Language: Jupyter Notebook
- Homepage: https://medium.com/analytics-vidhya/building-a-simple-chatbot-in-python-using-nltk-7c8c8215ac6e
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Building-a-Simple-Chatbot-in-Python-using-NLTK
History of chatbots dates back to 1966 when a computer program called ELIZA was invented by Weizenbaum. It imitated the language of a psychotherapist from only 200 lines of code. You can still converse with it here: Eliza.
On similar lines let's create a very basic chatbot utlising the Python's NLTK library.It's a very simple bot with hardly any cognitive skills,but still a good way to get into NLP and get to know about chatbots.
# Motivation
The idea of this project was not to create some SOTA chatbot with exceptional cognitive skills but just to utilise and test my Python skills.This was one of my very first projects, created when I just stepped into the world of NLP and I thought of creating a simple chatbot just to make use of my newly acquired knowledge
# BlogPost
For detailed overview, here is the accompanying blog titled:Building a Simple Chatbot in Python (using NLTK)
# Pre-requisites
NLTK(Natural Language Toolkit)
[Natural Language Processing with Python](https://www.nltk.org/book/) provides a practical introduction to programming for language processing.
For platform-specific instructions, read [here](https://www.nltk.org/install.html)
# Installation of NLTK
pip install nltk
# Installing required packages
After NLTK has been downloaded, install required packages
-- import nltk
-- from nltk.stem import WordNetLemmatizer
-- nltk.download('popular', quiet=True) # for downloading popular packages
-- nltk.download('punkt')
-- nltk.download('wordnet')