This project is an intelligent conversational chatbot implemented using BERT (Bidirectional Encoder Representations from Transformers). The chatbot is designed to understand and respond to various user intents in a conversational manner. The different intents include greetings, questions about the time, identity of the user, chatbot, jokes, queries, and more.
The training data consists of various user queries and their corresponding intents. The data is preprocessed and tokenized to be compatible with the BERT model.
- Open the Jupyter notebook
Intent_Classification_Chatbot.ipynb. - Follow the steps in the notebook to preprocess the data, train the model, and save the trained model as a
.pthfile. - The trained model will be saved as
data.pth.
Gradio is used to create a user-friendly web interface for interacting with the chatbot.
- Ensure you have all the required dependencies installed:
pip install -r requirements.txt
- Run the Gradio app:
python run.py
- Open the provided URL in your web browser to interact with the chatbot.
- Additional Intents: Add more intents to make the chatbot more versatile.
- Improved Responses: Enhance the response generation to make the chatbot more engaging.
- Deployment: Deploy the chatbot on a cloud platform for wider accessibility.
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Description of your changes" - Push to the branch:
git push origin feature-name
- Create a pull request.
For any questions or suggestions, please contact:
- Name: Mehul Mathur
- Email: [email protected]