GithubHelp home page GithubHelp logo

shreyanshchordia / chatbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.83 MB

The following repository demonstrates building a chatting bot using Tensorflow Framework. This project uses the ChatterbotEnglish Dataset, from Kaggle and tunes an Encoder-Decoder Model on the entire Dataset.

License: MIT License

Jupyter Notebook 93.35% Python 6.65%

chatbot's Introduction

Chatbot

The following repository demonstrates building a chatting bot using Tensorflow Framework.
This project uses the ChatterbotEnglish Dataset, from Kaggle and tunes an Encoder Decoder Model on the entire Dataset.

Bits and Bytes of the Repository

  1. From the \Data you can download Raw Data to start off from the beggining, you can download Structured Data to save time, or you can even Download Completely pre-processed Model Feedable Pre-Processed Data.

  2. \DataPrepUtils folder has a set of functions that have been used for structuring the Data. Can be used for multi purposes on editing.

  3. \LoadAndRun folder contains PY files, that load the trained models and then can reply to the user on the console in real time. After downloading the the folder files, all you need to do is to execute run.py if you have tensorflow pre installed in your python environment.

  4. DataPreparation.ipynb notebook demonstrates, how to structure data for ChatterbotEnglish Dataset.

  5. EncoderDecoderModel.ipynb notebook demonstrates:

    a. Processing data for making it feedable in a Sequence Model.

    b. Training a Multi Layer Bi Directional Encoder Decoder Model.

    c. Using trained Encoder Model and Decoder Model to predict replies in real time.

  6. TextDataAugmentation.py is a PY file, that can be used for Data Augmentation for a Text Dataset.

  7. Vocabulary.py has the Vocabulary Class that is used for adding words to vocabulary, trimming the vocabulary size, generating Vocabulary Mapping Dictionaries and for converting sentences to number sequences.

Bi-LSTM Encoder Decoder Model

Training :-

Encoder Model :-

Decoder Model :-

Inference (Deployable Model) :-

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.