Git Product home page Git Product logo

rakib-hasan-rahad / multilingual-chatbot-using-deep-learning-model Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.45 MB

Project Overview: This project develops a multilingual chatbot using deep learning and NLP, capable of conversing in English and Bangla. It features a PyTorch-based model trained on diverse user intents, with a focus on overcoming language barriers.

Home Page: https://drive.google.com/drive/folders/1ilT01R4PBQeK5WteZW3PUmqbcA1UR8B7?usp=sharing

Python 100.00%
bracu cse425 networks neural project bangla chatbot

multilingual-chatbot-using-deep-learning-model's Introduction

Bangla Chat Bot Documentation Introduction This documentation provides detailed guidelines for installing, using, and understanding the Bangla Chat Bot. This chatbot is implemented using PyTorch and provides a basic yet effective approach for natural language understanding and response generation in the Bengali language. Features  Simple chatbot implementation with a feedforward neural network having two hidden layers.  Easy customization for different use cases by modifying intents.json.  Language support for Bangla and English, with capabilities for understanding and generating responses in Bengali and English. Also easily customizable for adding new languages. Project Structure  app.py: Main application file for the chatbot interface.  chat.py: Handles chat functionality and response generation.  model.py: Defines the neural network model.  nltk_utils.py: Contains utility functions for text processing.  train.py: Script for training the neural network model.  intents.json: Contains intents and patterns for training.  data.pth: The trained model file. Installation Guide Prerequisites  Python 3.x  Pip package manager  Virtual environment (optional but recommended)Setting Up the Environment

  1. Create a Project Directory:
  2. Create and Activate a Virtual Environment:
  3. Install Dependencies:  PyTorch: Visit the official PyTorch website for installation instructions.( https://pytorch.org/get-started/locally/)  Install NLTK and other dependencies:  Download NLTK Tokenizer:  Install Language Detection and Translation Libraries: Usage InstructionsTraining the Model
  4. Run the Training Script: This will process the data in intents.json and train the neural network, saving the trained model to data.pth.
  5. Running the Chatbot
  6. To interact with the chatbot using the graphical user interface, simply run the app.py file: This will open the Python GUI interface where you can directly interact with the chatbot. Customization  Customizing Intents:  Modify the intents.json file to include new patterns and responses.  Example intent structure: FAQs Q: How do I add a new language to the chatbot?A: The current implementation primarily supports Bengali. To add support for a new language, you would need to provide data in the desired language in intents.json and possibly adjust the NLP preprocessing in nltk_utils.py. Q: Can this chatbot handle context in conversations? A: The current implementation has basic contextual understanding based on the defined intents and patterns. For advanced context handling, further development and integration of contextaware algorithms would be required. Q: How do I add a new conversation topic? A: Add a new intent in intents.json with patterns and responses, and retrain the model. Q: What languages does this chatbot support? A: Currently, it is designed for Bangla and English, but can be adapted for other languages by modifying the chat.py file. Q: How can I improve the chatbot's accuracy? A: Increase the dataset size, tweak the neural network architecture. Most importantly use language Models.

multilingual-chatbot-using-deep-learning-model's People

Contributors

rakib-hasan-rahad avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

monthasirafnan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.