Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hegdepavankumar/chatbot-using-python-nltk
Chatbot Developed with the help of NLP and Python
https://github.com/hegdepavankumar/chatbot-using-python-nltk
anaconda chatbot jupyter-notebook machine-learning nlp numpy pandas project python3 sklearn text text-classification textrecognition
Last synced: about 1 month ago
JSON representation
Chatbot Developed with the help of NLP and Python
- Host: GitHub
- URL: https://github.com/hegdepavankumar/chatbot-using-python-nltk
- Owner: hegdepavankumar
- License: mit
- Created: 2023-03-15T05:30:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T04:22:13.000Z (about 1 year ago)
- Last Synced: 2024-05-02T04:44:45.705Z (8 months ago)
- Topics: anaconda, chatbot, jupyter-notebook, machine-learning, nlp, numpy, pandas, project, python3, sklearn, text, text-classification, textrecognition
- Language: Jupyter Notebook
- Homepage: https://imhegde.github.io/chatbot-using-python-NLTK/
- Size: 240 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Building a Simple Chatbot from Scratch in Python (using NLTK)
![GitHub](https://img.shields.io/github/license/hegdepavankumar/chatbot-using-python-NLTK?style=flat)
![GitHub top language](https://img.shields.io/github/languages/top/hegdepavankumar/chatbot-using-python-NLTK?style=flat)
![GitHub last commit](https://img.shields.io/github/last-commit/hegdepavankumar/chatbot-using-python-NLTK?style=flat)
![ViewCount](https://views.whatilearened.today/views/github/hegdepavankumar/chatbot-using-python-NLTK.svg?cache=remove)![Alt text](https://cdn-images-1.medium.com/max/800/1*pPcVfZ7i-gLMabUol3zezA.gif)
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](http://psych.fullerton.edu/mbirnbaum/psych101/Eliza.htm?utm_source=ubisend.com&utm_medium=blog-link&utm_campaign=ubisend).
On similar lines let's create a very basic chatbot utilizing 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.
# Outline
* [Motivation](#motivation)
* [Blogpost](#blogpost)
* [Pre-requisites](#pre-requisites)
* [How to run](#how-to-run)## Motivation
The idea of this project was not to create some SOTA chatbot with exceptional cognitive skills but just to utilize 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
## Pre-requisites(Kindely Follow π Instructions)
**NLTK(Natural Language Toolkit)**[Natural Language Processing with Python](http://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 the required packages
```
import nltk
from nltk.stem import WordNetLemmatizer
nltk.download('popular', quiet=True) # for downloading popular packages
nltk.download('punkt')
nltk.download('wordnet')
```## How to run
* Jupyter Notebook [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/parulnith/Building-a-Simple-Chatbot-in-Python-using-NLTK/master)You can run the [chatbot.ipynb](https://github.com/parulnith/Building-a-Simple-Chatbot-in-Python-using-NLTK/blob/master/Chatbot.ipynb) which also includes step-by-step instructions.
* Through Terminal## Note
If you wanna change something or improve feel free to change and Pull the Request (Only Required Changes are accepted).
## Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
3. Commit your changes (git commit -m 'Add some AmazingFeature')
4. Push to the Branch (git push origin feature/AmazingFeature)
5. Open a Pull Request
6. [Community Rules](https://github.com/hegdepavankumar/chatbot-using-python-NLTK/blob/master/Community_Rules.md)Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## Creator [π](#Building-a-Simple-Chatbot-in-Python-using-NLTK)
(https://github.com/hegdepavankumar). This Project is Created by:-
| [
@hegdepavankumar](https://github.com/hegdepavankumar) |```
Hey Everyone Please give me a star .. and Follow me for more amazing project ideas and Updatesβ and don't forget to fork the repo...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thank you~~~ππ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~