Giter VIP home page Giter VIP logo

refnet-qg's Introduction

Let's Ask Again: Refine Network for Automatic Question Generation

Requirements:

Data Download:

SQuAD (v1) 
The dataset was preprocessed using nltk word_tokenizer and was lower cased. The dataset is store in the following format:
data/
train_content (passage/sentence which contains the answer) 
    train_query   ( answer)
    train_summary ( question needs to be generated)    

    valid_content 
    valid_query
    valid_summary

    test_content
    test_query
    test_summary

The test split corresponds to dev split in all datasets. The valid split is 10\% of the train dataset, 
selected randomly .

Pretrained Embeddings

Download the pretrained embeddings for a given language and then store it to a folder squad_embeddings/
* English Embedding: bash extract_embeddings.sh english embeddings/

Proposed Model: Training

* To run only the RefNet-QG model on SQuAD model:
  python run_model_training.py ../data/ config_files/config_file.ini

Proposed Models: Inference

* The syntax for running the inference is also similar to running the training 
  python run_model_inference.py ../data/ config_file.ini

Post Processing Scripts: Copy Mechanism and Generate Attention Weight Plots:

 cd postprocess_scripts
 
 # sh extract_labels_plots.sh <output_dir> <data_directory> <epoch_number>
 sh extract_labels_beam.sh  ../output ../data True False 1000

refnet-qg's People

Contributors

akashkm99 avatar prekshanema25 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.