Giter Site home page Giter Site logo

keras_generative_pg's Introduction

Paraphrase generation based on LSTM-VAE by wanzeyu

Overview

Keras implementation for A Deep Generative Framework for Paraphrase Generation.

Resource Used:

  1. MSRP paraphrase corpus

  2. Fasttext's pretrained vector

Requirements:

  1. Keras
  2. Numpy

In this project I try to implement novel VAE-LSTM architecture mentioned in A Deep Generative Framework for Paraphrase Generation.

QuickStart

Use python example.py. The code will train on the corpus and print predicted result after every epoch.

By default ,the program will be in training mode and will save model to three files.

The default epoch is 200.

If you want to change the parameters. You have to change according lines.

Resource

  • test_source.txt is the original file
  • test_target.txt is the paraphrase file
  • wiki.simple.vec is fasttext's pretrained vector on simple wiki

Model Architecture

encoder model:

encoder

decoder model:

decoder

vae overview:

overview

Problems

  1. I didn't write a proper test function or use BLEU to evaluate. This has to be done after I found out what's wrong with my implementation.

Progress

  • Implement the basic framework of the thesis
  • Write the evaluation code
  • Refactor and clean up the messy code

References

keras_generative_pg's People

Contributors

paulx3 avatar

Watchers

James Cloos 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.