Giter VIP home page Giter VIP logo

seqgan_vae_paraphrasing's Introduction

SeqGAN VAE Paraphrasing

About The Project

My project is called Paraphrasing. This is an implementation of An End-to-End Generative Architecture for Paraphrase Generation.

Getting Started

To get started, you should have prior knowledge on Python and Pytorch at first. A few resources to get you started if this is your first Python or Tensorflow project:

Installation and Run

  1. Clone the repo

    git clone https://github.com/phkhanhtrinh23/seqgan_vae_paraphrasing.git
  2. Use any code editor to open the folder seqgan_vae_paraphrasing.

Step-by-step

  1. Read and run data.py to convert data/train.csv to a compatible format. The dataset originates from Quora Question Pairs (QQP).

  2. Read and run train.py to train the SeqGAN VAE model. The model architecture originates from "An End-to-End Generative Architecture for Paraphrase Generation".

Results

Description:

  • Inp: the input data.
  • Pre: the prediction from the model.
  • Tar: the targe/label data (groundtruth).

Note 1: <eos> is just the end-of-sentence token.

Note 2: As you can witness, QQP just covers paraphrasing on question so this model may not work well on normal sentences. Moreover, some of the QQP's data are not good enough to the model because of the low quality of inputs and labels. Sometimes, our model has much better paraphrases than the QQP's labels.

Contribution

Contributions are what make GitHub such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the project
  2. Create your Contribute branch: git checkout -b contribute/Contribute
  3. Commit your changes: git commit -m 'add your messages'
  4. Push to the branch: git push origin contribute/Contribute
  5. Open a pull request

Contact

Email: [email protected]

Project Link: https://github.com/phkhanhtrinh23/seqgan_vae_paraphrasing.git

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.