This is a simple chatbot created using Python and spaCy. The chatbot can respond to common questions and perform specific tasks.
- 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.
- Python 3.x
- spaCy
- NLTK
- Clone the repository:
git clone https://github.com/ShadBalti/simple-chatbot.git
- Navigate to the project directory:
cd simple-chatbot
- Install the required packages:
pip install -r requirements.txt
- Download the necessary NLTK data:
import nltk nltk.download('punkt') nltk.download('wordnet') nltk.download('averaged_perceptron_tagger') nltk.download('nps_chat')
- Download the spaCy model:
python -m spacy download en_core_web_sm
Run the chatbot script:
python advanced_chatbot.py
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!
This project is licensed under the MIT License.