Giter Site home page Giter Site logo

pravin-navle / chatbot_tensorflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jalajthanaki/chatbot_tensorflow

0.0 1.0 0.0 347.86 MB

Built the cahtbot using tensorflow. This chatbot based on RNN and seq2seq model.

Python 65.59% Shell 0.68% CSS 29.41% JavaScript 2.68% HTML 1.63%

chatbot_tensorflow's Introduction

Tensorflow Chatbot

This is code for building chatbot using tensorflow.

Overview

In this code, we implement Tensorflows Sequence to Sequence model to train a chatbot on the Cornell Movie Dialogue dataset. After training for a few hours, the bot is able to hold a fun conversation.

Dependencies

  • numpy
  • scipy
  • six
  • It is must to install tensorflow 0.12.1version. Find installation instruction form here

Use pip to install any missing dependencies

Important note

You must run this code on python 2.7 version and tensorflow 0.12.1 version.

Usage

To train the bot, edit the seq2seq.ini file so that mode is set to train like so

mode = train

then run the code like so

python execute.py

To test the bot during or after training, edit the seq2seq.ini file so that mode is set to test like so

mode = test

then run the code like so

python execute.py

I have also upload the pretrained model which you can download and test the model.

For training I have used GPU Gforce 1060 6-GB. It take 1 hour in order to generate the sentences.

Credits

Credit for the majority of code here goes to suriyadeepan. I've merely created a wrapper to get people started.

chatbot_tensorflow's People

Watchers

 avatar

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.