GithubHelp home page GithubHelp logo

gabriellin / drlparaphrase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leechihahchiu/drlparaphrase

0.0 1.0 0.0 714 KB

Paraphrase Generation with Deep Reinforcement Learning

Jupyter Notebook 15.70% Python 84.30%

drlparaphrase's Introduction

Re-Implementation of EMNLP 2018 paper Paraphrase Generation with Deep Reinforcement Learning

Still under construction.


Updates:

  • Created parse_data.py to process Quora dataset into tokens and .bin files (tf.Example) files for generator to read

TODO:

RbM-SL

  1. To train evaluator:
    • Fix train.py to take in the data we want - no need to read_corpus, we just need to have pairs of (sent1, sent2, label) --> where label is 0 or 1
      • Embeddings: Use the ones from the paper, there should be a function to load them
  2. To pre-train generator()
    • Fix batcher.py
      • modify text_generator() to extract question 1 and question 2 from tf.Example file IFF they have a positive label
      • modify fill_example_queue() --> Possibly just name change of (article, abstract)
  3. Try generating one sentence with initial generator
  4. Write the whole RL architecture:
    • Find a good monte carlo simulator library for this task
    • Function to compute value
    • Make function to rescale Q value
    • Make function to update gradient

RbM-iRL

  1. Steps 1-3 from RbM-SL
  2. Calculate gradient according to algorithm
  3. Write method to train evaluator

drlparaphrase's People

Contributors

ashutoshml avatar leechihahchiu 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.