GithubHelp home page GithubHelp logo

geekberu / chatbot_al Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 4.0 19.14 MB

An implementation of Chatbot using Adversarial Learning and Reinforcement Learning based on TensorFlow framework.

License: Apache License 2.0

Python 100.00%
tensorflow chatbot deep-learning gan adversarial-learning reinforcement-learning dialogue-generation

chatbot_al's Introduction

AL/RL based Chatbot

An implementation of Chatbot using Adversarial Learning and Reinforcement Learning

References

Dependencies

  • Python 3.6
  • TensorFlow 1.12.0
  • nltk
  • tqdm
  • numpy

Note: You might also need to download additional data to make nltk work

python -m nltk.downloader punkt

Corpus

Many thanks to @Conchylicultor for providing above corpus information.

Training

python main.py

Follow below steps:

  1. Pre train the Generator and get the GEN_0 model.
  2. GEN model test
  3. Pre train the Discriminator and get the DISC_0 model
  4. Train the GEN model and DISC model using AL/RL
  5. GEN model test

Test

python main.py --test 1

Results

Q: Hi.
A: Hey.
Q: How are you..
A: Fine.
Q: What is your name
A: Harold ...
Q: You are so nice
A: I am?
Q: Wow
A: What do you mean?
Q: That's great
A: That's right.
Q: Cool
A: Yeah?
Q: My name is Amigo
A: I know.
Q: What is the first letter of the alphabet ?
A: What?
Q: See you later
A: Yeah.
Q: Tell me something ...
A: I'm not saying ...
Q: You are so cute !!!!!!!!!!
A: Wonderful!
Q: Can we make this quick?
A: Sure.
Q: Where are you from
A: Here.
Q: Merry christmas !
A: Merry christmas.
Q: How old are you
A: Twenty-eight.

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.