Coder Social home page Coder Social logo

keras_dialogue_generation_toolkit's Introduction

keras_dialogue_generation_toolkit

Introduction

This is a Keras framework for dialogue generation. It includes some basic generative models:

Structure

  1. commonly_used_code: This folder contains commonly used code for all of the sub-tasks. We can reuse the code in this folder.
  2. configuration: This folder contains configuration of the task, including all kinds of file path.
  3. run_script: The parameter parser file is put in this folder and the run script can be put in this folder. All models' hyper-parameters are set in the args_parser.py.
  4. data: This folder contains all data. For this framework, it has a specific requirement for the data set format. Example data set is in this folder.
  5. pre_precessing: This folder contains data processing code. All process about the data processing should be put into this folder. The final data should be generated to the data folder.
  6. example: For all of the models listed above, the training entrance is in this folder. You can get start from this folder.
  7. models: The core model files are in this folder. You can get the code of each model.

Reference and Acknowledgement:

  1. Pointer_generator: Thank Abisee, we use his repo on the Github. Obeying the Apache License version 2.0, we just use this repo for researching. I refer readers to the original repo: Pointer-Generator
  2. Memory Neural Network: Thank these authors. We inspire from two repos, memn2n tensorflow version and memn2n keras version
  3. Transformer and Universal Transformer: Thanks kpot for his repo: keras-transformer. I changed his original code to fit with my experiments. He also implemented BERT on top of this repo. Even this repo didn't implement entire Transformer, it still easy to add Decoder part in this framework. The original repo can be found here: keras-transformer.

Usage:

Go into the example folder and run the 'train_***.py' file. An example is given below:

python train_transformer.py --data_set=wizard \
       --exp_name=transformer \
       --batch_size=40 \
       --src_seq_length=30 \
       --tar_seq_length=30 \
       --early_stop_patience=2 \
       --lr_decay_patience=1 \
       --lr=0.001

As for the hyper-parameters, they can be found in run_script\args_parser.py.

keras_dialogue_generation_toolkit's People

Contributors

tonywenuon 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.