Code Monkey home page Code Monkey logo

chatbot-memn2n-tensorflow's Introduction

MemN2N Chatbot in Tensorflow

Implementation of Learning End-to-End Goal-Oriented Dialog with sklearn-like interface using Tensorflow. Tasks are from the bAbl dataset.

MemN2N picture

Get Started

git clone [email protected]/rndabzooba/chatbot_memory_network.git

mkdir ./chatbot_memory_network/data/
cd ./chatbot_memory_network/data/
wget https://scontent.xx.fbcdn.net/t39.2365-6/13437784_1766606076905967_221214138_n.tgz
tar xzvf ./13437784_1766606076905967_221214138_n.tgz

cd ../
python single_dialog.py

Examples

Train the model

python single_dialog.py --train True --task_id 1 --interactive False

Running a single bAbI task Demo

python single_dialog.py --train False --task_id 1 --interactive True

These files are also a good example of usage.

Requirements

  • tensorflow 0.8
  • scikit-learn 0.17.1
  • six 1.10.0
  • scipy

Results

Unless specified, the Adam optimizer was used.

The following params were used:

  • epochs: 200
  • learning_rate: 0.01
  • epsilon: 1e-8
  • embedding_size: 20
Task Training Accuracy Validation Accuracy Testing Accuracy Testing Accuracy(OOV)
1 99.9 99.1 99.3 76.3
2 100 100 99.9 78.9
3 96.1 71.0 71.1 64.8
4 99.9 56.7 57.2 57.0
5 99.9 98.4 98.5 64.9
6 73.1 49.3 40.6 ---

Notes

I didn't play around with the epsilon param in Adam until after my initial results but values of 1.0 and 0.1 seem to help convergence and overfitting.

chatbot-memn2n-tensorflow's People

Contributors

vyraun avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.