Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadbalti/simple-chatbot
This is a simple chatbot created using Python and spaCy. The chatbot can respond to common questions and perform specific tasks.
https://github.com/shadbalti/simple-chatbot
ai bots chatbot python spacy
Last synced: 6 days ago
JSON representation
This is a simple chatbot created using Python and spaCy. The chatbot can respond to common questions and perform specific tasks.
- Host: GitHub
- URL: https://github.com/shadbalti/simple-chatbot
- Owner: ShadBalti
- License: mit
- Created: 2024-06-06T07:50:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T08:18:39.000Z (5 months ago)
- Last Synced: 2024-10-10T11:43:18.283Z (26 days ago)
- Topics: ai, bots, chatbot, python, spacy
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Simple Chatbot
This is a simple chatbot created using Python and spaCy. The chatbot can respond to common questions and perform specific tasks.
## Features
- Responds to greetings like "hi", "hey", or "hello".
- Introduces itself and provides information about its creation.
- Handles user introductions.
- Ends the conversation when the user types "quit".
- Responds to questions about weather, jokes, age, music, and more.## Requirements
- Python 3.x
- spaCy
- NLTK## Installation
1. Clone the repository:
```sh
git clone https://github.com/ShadBalti/simple-chatbot.git
```
2. Navigate to the project directory:
```sh
cd simple-chatbot
```
3. Install the required packages:
```sh
pip install -r requirements.txt
```
4. Download the necessary NLTK data:
```python
import nltk
nltk.download('punkt')
nltk.download('wordnet')
nltk.download('averaged_perceptron_tagger')
nltk.download('nps_chat')
```
5. Download the spaCy model:
```sh
python -m spacy download en_core_web_sm
```## Usage
Run the chatbot script:
```sh
python advanced_chatbot.py
```## Example Interaction
```
You: Hi
Chatbot: Hello!
You: What is your name?
Chatbot: I am a chatbot created by you.
You: How are you?
Chatbot: I'm doing good, thank you for asking!
You: Tell me a joke.
Chatbot: Why don't scientists trust atoms? Because they make up everything!
You: quit
Chatbot: Bye, take care!
```## License
This project is licensed under the MIT License.