Spaces:
Sleeping
Sleeping
Samarth Pujari commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,2 +1,99 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# **π€ AI-Powered Chatbot using NLP**
|
| 2 |
+
|
| 3 |
+
## **π Introduction**
|
| 4 |
+
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.
|
| 5 |
+
|
| 6 |
+
π **Deployed Application:** [π§ AI Chatbotπ€](https://ai-conversation-chatbot.streamlit.app/)
|
| 7 |
+
|
| 8 |
+
## **π― Project Goals**
|
| 9 |
+
β
Implement **AI & NLP techniques** for intelligent conversation.
|
| 10 |
+
β
Explore **BERT-based Deep Learning** for chatbot development.
|
| 11 |
+
β
Develop a **context-aware chatbot** with high accuracy.
|
| 12 |
+
β
Enhance **text preprocessing, model training, and deployment skills**.
|
| 13 |
+
β
Deploy an **interactive chatbot web app** using **Streamlit**.
|
| 14 |
+
|
| 15 |
+
## **π Dataset Used**
|
| 16 |
+
The chatbot is trained on a **custom Intent JSON dataset**, which includes:
|
| 17 |
+
|
| 18 |
+
- **User Queries & Responses**: Predefined conversations.
|
| 19 |
+
- **Intent Classification Data**: Labeled conversations for accurate intent detection.
|
| 20 |
+
- **Pretrained BERT Model**: Fine-tuned for improved understanding.
|
| 21 |
+
|
| 22 |
+
## **π Methodology**
|
| 23 |
+
|
| 24 |
+
### **Step 1: Data Collection & Preprocessing**
|
| 25 |
+
πΉ Loaded and cleaned **Intent JSON dataset**.
|
| 26 |
+
πΉ **Tokenized text data** using BERT tokenizer.
|
| 27 |
+
πΉ **Converted labels to categorical format** for training.
|
| 28 |
+
|
| 29 |
+
### **Step 2: Model Selection & Training**
|
| 30 |
+
πΉ Used **BERT (Bidirectional Encoder Representations from Transformers)**.
|
| 31 |
+
πΉ Implemented **deep learning-based intent classification**.
|
| 32 |
+
πΉ Trained on multiple epochs & tuned hyperparameters for **optimal accuracy**.
|
| 33 |
+
πΉ Evaluated **training & validation accuracy** to ensure model performance.
|
| 34 |
+
|
| 35 |
+
### **Step 3: Chatbot Development & Integration**
|
| 36 |
+
πΉ Built an **Intent Recognition Model** using **BERT for Sequence Classification**.
|
| 37 |
+
πΉ Designed a **Response Generation Mechanism** for accurate replies.
|
| 38 |
+
πΉ Integrated trained model into a **Streamlit & HuggingFace web app** for user interaction.
|
| 39 |
+
|
| 40 |
+
### **Step 4: Deployment & User Interaction**
|
| 41 |
+
πΉ **Saved and exported the trained BERT model** for real-time inference.
|
| 42 |
+
πΉ Deployed chatbot as a **Streamlit as well as HuggingFace web app**.
|
| 43 |
+
πΉ **Implemented real-time conversations** with NLP-powered responses.
|
| 44 |
+
|
| 45 |
+
## **π Key Features**
|
| 46 |
+
β
**Real-time Chatbot using BERT-based Intent Recognition**.
|
| 47 |
+
β
**Deep Learning Model trained on an Intent JSON dataset**.
|
| 48 |
+
β
**Optimized Text Processing & Tokenization**.
|
| 49 |
+
β
**Accurate Intent Classification for diverse queries**.
|
| 50 |
+
β
**Deployable on Web using Streamlit**.
|
| 51 |
+
|
| 52 |
+
## **π Technologies Used**
|
| 53 |
+
| Category | Tools & Libraries |
|
| 54 |
+
|---------------------|-------------------|
|
| 55 |
+
| **Development** | Python, Jupyter Notebook, Anaconda, VS Code|
|
| 56 |
+
| **NLP Frameworks** | Hugging Face Transformers, BERT |
|
| 57 |
+
| **Machine Learning** | TensorFlow, PyTorch |
|
| 58 |
+
| **Data Processing** | Pandas, NumPy |
|
| 59 |
+
| **Deployment** | Streamlit, Streamlit Cloud, HuggingFace |
|
| 60 |
+
|
| 61 |
+
## **π· Screenshots**
|
| 62 |
+
|
| 63 |
+
| **Streamlit App - Chatbot Interface** |
|
| 64 |
+
|---------------------------------------|
|
| 65 |
+
||
|
| 66 |
+
|
| 67 |
+
## **π― Future Improvements**
|
| 68 |
+
πΉ Expand dataset with **more real-world conversations**.
|
| 69 |
+
πΉ Integrate **voice-based interaction** using Speech Recognition.
|
| 70 |
+
πΉ Enhance **context retention** for long conversations.
|
| 71 |
+
πΉ Optimize model efficiency for **faster response times**.
|
| 72 |
+
πΉ Expanding chatbot capabilities with **multilingual support**.
|
| 73 |
+
|
| 74 |
+
## **π₯ Installation & Setup**
|
| 75 |
+
|
| 76 |
+
### **πΉ Clone the Repository**
|
| 77 |
+
```bash
|
| 78 |
+
git clone https://github.com/Samarth4023/Shell-Internship-2.git
|
| 79 |
+
cd Shell-Internship-2
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
### **πΉ Install Required Dependencies**
|
| 83 |
+
```bash
|
| 84 |
+
pip install -r requirements.txt
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
### **πΉ Run the Streamlit App**
|
| 88 |
+
```bash
|
| 89 |
+
streamlit run app.py
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
## **π License**
|
| 93 |
+
This project is **open-source** and free to use. Feel free to contribute!
|
| 94 |
+
|
| 95 |
+
## **π§ Contact**
|
| 96 |
+
π **Author:** Samarth Pujari
|
| 97 |
+
π **GitHub:** [Samarth4023](https://github.com/Samarth4023)
|
| 98 |
+
π **LinkedIn:** [Samarth Pujari](https://www.linkedin.com/in/samarth-pujari-328a1326a)
|
| 99 |
+
|