Git Product home page Git Product logo

adversarial-learning-for-neural-dialogue-generation-in-tensorflow's Introduction

Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow

the paper: Adversarial Learning for Neural Dialogue Generation https://arxiv.org/pdf/1701.06547.pdf

the paper translation in Chinese :http://blog.csdn.net/liuyuemaicha/article/details/60581187

Config:

TensorFlow 0.12.0 Python 2.7

Introduction to Project: al_neural_dialogue

1.

gen_data:   training data for gen model

disc_data:   training data for disc model

disc:       code about disc model

gen:         code about gen model

utils:       code about data operation and model config

notice:

gen_data include chitchat.train.answer, chitchat.train.query, chitchat.dev.answer, chitchat.dev.query (total four files)

disc_data include disc.dev.answer,disc.dev.query, disc.dev.gen 和 disc.train.answer, disc.train.query,disc.tran.gen (total six files)

formula of training data one sentence one row and splited with space, eg: i don ' t want to !

2.run

python al_neural_dialogue_train.py

introduction

def main(_):

'''

  # step_1 training gen model

# gen_pre_train()

# model test
# gen_test()

# step_2 gen training data for disc
# gen_disc()

# step_3 training disc model
# disc_pre_train()

# step_4 training al model
# al_train()

# model test
# gen_test() 

'''

model introduction

1、disc model : hierarchical rnn (A diversity-promoting objective function for neural conversation models)

2、gen model : seq2seq model with attention (GRU cell)

3、method of reward : Monte Carlo Search

adversarial-learning-for-neural-dialogue-generation-in-tensorflow's People

Contributors

liuyuemaicha avatar

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.