An intelligent chatbot system powered by BERT NLP model with text interaction capabilities.
- BERT-based Q&A: Utilizes
deepset/bert-base-cased-squad2model - Dual Interface: Web-based text chat interaction
- Admin Dashboard: For content management and customization
- High Accuracy: Achieved 80.11% F1 score on validation data
- Easy Integration: Flask-based backend with responsive Bootstrap frontend
| Metric | Score |
|---|---|
| F1 Score | 80.11% |
| Precision | 77.50% |
| Recall | 88.57% |
Backend:
- Transformers (BERT Q&A)
- PyTorch
- Flask
Frontend:
- Bootstrap 5
- JavaScript
-
Clone the repository
git clone https://github.com/rahmaeBrahi/Chatbot-NLP.git cd Chatbot-NLP
-
Install dependencies pip install -r requirements.txt
-
Initialize the model python main.py --init-model
-
Run the backend python backend.py
-
Configuration Edit config.json to customize settings
-
Advanced Options Model Switching: Replace model name in main.py: MODEL_NAME = "deepset/bert-base-cased-squad2" Change to roberta-base or other HuggingFace models if needed.
Database Integration: Pre-configured for PostgreSQL/MongoDB
7.👩💻 Development Team
Rahma Ebrahim
Poussy Ayman
jehad mahmoud