https://github.com/samarth4023/shell-internship-2
π€ AICTE Shell Internship - NLP Chatbot This repository contains the implementation of a Chatbot using NLP, developed as part of the AICTE Shell Internship. The chatbot is designed to understand and respond to user queries using Natural Language Processing (NLP) techniques.
https://github.com/samarth4023/shell-internship-2
ai artificial-intelligence chatbot natural-language-processing nlp nltk python scikit-learn streamlit
Last synced: about 2 months ago
JSON representation
π€ AICTE Shell Internship - NLP Chatbot This repository contains the implementation of a Chatbot using NLP, developed as part of the AICTE Shell Internship. The chatbot is designed to understand and respond to user queries using Natural Language Processing (NLP) techniques.
- Host: GitHub
- URL: https://github.com/samarth4023/shell-internship-2
- Owner: Samarth4023
- Created: 2025-03-01T05:51:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-01T06:30:22.000Z (over 1 year ago)
- Last Synced: 2025-03-01T07:18:36.428Z (over 1 year ago)
- Topics: ai, artificial-intelligence, chatbot, natural-language-processing, nlp, nltk, python, scikit-learn, streamlit
- Language: Jupyter Notebook
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
license: apache-2.0
title: π§ AI Chatbotπ€
sdk: streamlit
emoji: π»
colorFrom: pink
colorTo: purple
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/6686260107019f3fe482ce08/xfpa6MidZ5aE9OEP96pi5.jpeg
short_description: The System on Real-Time Intent Recognition and Conversations
sdk_version: 1.43.2
---
# **π€ AI-Powered Chatbot using NLP**
## **π Introduction**
This project is an **AI-driven chatbot**, developed as part of my **AICTE-Shell Internship**. The chatbot leverages **Natural Language Processing (NLP) and Deep Learning** techniques using **BERT** to provide intelligent responses based on user queries. The chatbot is trained on an **Intent JSON dataset** and fine-tuned to enhance accuracy.
π **Deployed Application:** [π§ AI Chatbotπ€](https://huggingface.co/spaces/SamarthPujari/AI-Chatbot)
## **π― Project Goals**
β
Implement **AI & NLP techniques** for intelligent conversation.
β
Explore **BERT-based Deep Learning** for chatbot development.
β
Develop a **context-aware chatbot** with high accuracy.
β
Enhance **text preprocessing, model training, and deployment skills**.
β
Deploy an **interactive chatbot web app** using **Streamlit**.
## **π Dataset Used**
The chatbot is trained on a **custom Intent JSON dataset**, which includes:
- **User Queries & Responses**: Predefined conversations.
- **Intent Classification Data**: Labeled conversations for accurate intent detection.
- **Pretrained BERT Model**: Fine-tuned for improved understanding.
## **π Methodology**
### **Step 1: Data Collection & Preprocessing**
πΉ Loaded and cleaned **Intent JSON dataset**.
πΉ **Tokenized text data** using BERT tokenizer.
πΉ **Converted labels to categorical format** for training.
### **Step 2: Model Selection & Training**
πΉ Used **BERT (Bidirectional Encoder Representations from Transformers)**.
πΉ Implemented **deep learning-based intent classification**.
πΉ Trained on multiple epochs & tuned hyperparameters for **optimal accuracy**.
πΉ Evaluated **training & validation accuracy** to ensure model performance.
### **Step 3: Chatbot Development & Integration**
πΉ Built an **Intent Recognition Model** using **BERT for Sequence Classification**.
πΉ Designed a **Response Generation Mechanism** for accurate replies.
πΉ Integrated trained model into a **Streamlit & HuggingFace web app** for user interaction.
### **Step 4: Deployment & User Interaction**
πΉ **Saved and exported the trained BERT model** for real-time inference.
πΉ Deployed chatbot as a **Streamlit as well as HuggingFace web app**.
πΉ **Implemented real-time conversations** with NLP-powered responses.
## **π Key Features**
β
**Real-time Chatbot using BERT-based Intent Recognition**.
β
**Deep Learning Model trained on an Intent JSON dataset**.
β
**Optimized Text Processing & Tokenization**.
β
**Accurate Intent Classification for diverse queries**.
β
**Deployable on Web using Streamlit**.
## **π Technologies Used**
| Category | Tools & Libraries |
|---------------------|-------------------|
| **Development** | Python, Jupyter Notebook, Anaconda, VS Code|
| **NLP Frameworks** | Hugging Face Transformers, BERT |
| **Machine Learning** | TensorFlow, PyTorch |
| **Data Processing** | Pandas, NumPy |
| **Deployment** | Streamlit, Streamlit Cloud, HuggingFace |
## **π· Screenshots**
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
| **Streamlit App - Chatbot Interface** |
|---------------------------------------|
||
## **π― Future Improvements**
πΉ Expand dataset with **more real-world conversations**.
πΉ Integrate **voice-based interaction** using Speech Recognition.
πΉ Enhance **context retention** for long conversations.
πΉ Optimize model efficiency for **faster response times**.
πΉ Expanding chatbot capabilities with **multilingual support**.
## **π₯ Installation & Setup**
### **πΉ Clone the Repository**
```bash
git clone https://github.com/Samarth4023/Shell-Internship-2.git
cd Shell-Internship-2
```
### **πΉ Install Required Dependencies**
```bash
pip install -r requirements.txt
```
### **πΉ Run the Streamlit App**
```bash
streamlit run app.py
```
## **π License**
This project is **open-source** and free to use. Feel free to contribute!
## **π§ Contact**
π **Author:** Samarth Pujari
π **GitHub:** [Samarth4023](https://github.com/Samarth4023)
π **LinkedIn:** [Samarth Pujari](https://www.linkedin.com/in/samarth-pujari-328a1326a)