Giter VIP home page Giter VIP logo

qg's Introduction

QG

Implementation of the paper "Learning to Generate Questions by Learning What not to Generate"

Run:

python3 QG_main.py --not_processed_data --spacy_not_processed_data --train

python3 QG_main_newsqa.py --not_processed_data --spacy_not_processed_data --train

If debug, add "—debug". It will run program with a few batches. If testing, replace "—train" with "—test".

The data only need to be preprocessed for one time. After preprocessing, next time, we need to remove "--not_processed_data —spacy_not_processed_data". In this way, the code will know the data is already preprocessed, and won't do that again.

Please revise the file paths in the main files.

Please download Glove and BPE files from websites.

BPE (maybe updated): https://github.com/bheinzerling/bpemb#how-to-use-bpemb

Glove: https://nlp.stanford.edu/projects/glove/

Original SQuAD1.1-Zhou: https://res.qyzhou.me/redistribute.zip

Original NewsQA:https://datasets.maluuba.com/NewsQA/dl

We put our processed datasets and the package for metric computation in: https://drive.google.com/drive/folders/1csm8AGn0RYD3P6H-5rs0QbXE964x1ono?usp=sharing

You can download the two zip files in the Google Drive link, and unzip them to replace the /Datasets and /nlgeval empty folders in this repository.

qg's People

Contributors

bangliu avatar

Watchers

 avatar

Forkers

zm379096736

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.