Keras Generative Pg Save

A Deep Generative Framework for Paraphrase Generation Implementaion

Project README

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

Open Source Agenda is not affiliated with "Keras Generative Pg" Project. README Source: paulx3/keras_generative_pg
Stars
77
Open Issues
8
Last Commit
6 years ago

Open Source Agenda Badge

Open Source Agenda Rating