Skip to content
its-lnvPublic

About

Simple NLP chatbot in Python using NLTK with English & Hinglish support.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🤖 Simple NLP Chatbot

A beginner-friendly NLP based chatbot built using Python and NLTK. This chatbot can understand basic user inputs and respond in English or Hinglish.


📌 Project Overview

This project is a simple Natural Language Processing (NLP) chatbot created as part of a learning task.

The chatbot: - Takes user input - Processes text using NLP techniques - Matches it with predefined intents - Returns an appropriate response

It is designed to be easy to understand and beginner-friendly.


🚀 Features

  • 💬 Interactive chatbot interface (Terminal-based)
  • 🌐 Supports English and Hinglish responses
  • 🔀 Random response selection from multiple replies
  • 🧠 Basic NLP preprocessing (tokenization, stopword removal)
  • 📁 Uses JSON file for storing intents and responses
  • 🔄 Easy to modify and expand
  • 🎓 Beginner-friendly code structure

🛠️ Technologies Used

  • Python 3
  • NLTK (Natural Language Toolkit)
  • JSON

⚙️ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/lakshminarayanverma91-bot/chatbot

2️⃣ Install Required Libraries

pip install nltk

3️⃣ Run the Chatbot

python chatbot.py


🧠 How It Works

  1. User enters a message
  2. Text is tokenized using NLTK
  3. Stopwords are removed
  4. Input is matched with predefined patterns
  5. A random response is selected
  6. Response is displayed in English or Hinglish

📈 Future Improvements

  • Add Machine Learning model (e.g., TensorFlow / PyTorch)
  • Add GUI using Tkinter or Streamlit
  • Add speech-to-text feature
  • Deploy on web using Flask or Django
  • Add database integration

🎯 Learning Objectives

  • Understand basics of NLP
  • Work with JSON data
  • Implement simple chatbot logic
  • Improve Python programming skills

🙋‍♂️ Author

Laxmi Narayan Verma BSc (Hons) Computer Science Delhi University


📜 License

This project is open-source and free to use for learning purposes.

About

Simple NLP chatbot in Python using NLTK with English & Hinglish support.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages