A simple yet powerful rule-based AI chatbot built using Natural Language Processing (NLP) techniques with NLTK. This chatbot can handle greetings, internship-related queries, Python programming questions, and general conversations.
Task-3: Build a chatbot using NLP libraries like NLTK or spaCy, capable of understanding and responding to user queries through natural language processing techniques.
- ✅ Handles greetings and general conversations
- ✅ Answers internship-related queries (CODTECH specific)
- ✅ Responds to Python programming questions
- ✅ Answers basic tech and coding concepts
- Tokenization - Breaking text into words/sentences
- Lemmatization - Reducing words to base form
- Intent Matching - Pattern-based response matching
- Part-of-Speech Tagging (optional enhancement)
- Simple command-line interface
- Easily extendable with new intents
- Random response variations for natural feel
- Case-insensitive pattern matching
- Graceful exit handling
- Python 3.7 or higher
- pip package manager
nltk==3.8.1
- Clone or download this repository
git clone https://github.com/yourusername/chatbot-nlp-project.git
cd chatbot-nlp-project
'''
**Sample conversation
======================================================================
CODTECH NLP CHATBOT - INTERNSHIP PROJECT
======================================================================
I can help you with:
• Python programming concepts
• CODTECH internship information
• General questions and jokes
• Tech career advice
Type 'quit' or 'exit' to end the conversation.
======================================================================
You: hi
Bot: Hello! 👋 How can I help you today?
You: what is your name?
Bot: I'm CODTECH Chatbot, your AI assistant! 🤖
You: what is python?
Bot: Python is a high-level, interpreted programming language known for its simplicity and readability! 🐍
You: when will I get my certificate?
Bot: You will receive your certificate on your internship end date after successful completion! 📜
You: tell me a joke
Bot: Why do programmers prefer dark mode? Because light attracts bugs! 🐛
You: thank you
Bot: You're very welcome! 😊 Happy to help!
You: bye
Bot: Goodbye! 👋 Come back anytime!