Git Product home page Git Product logo

conversational-qg's Introduction

Conversational Question Generation

Implementation for our ACL 2019 paper: Interconnected Question Generation with Coreference Alignment and Conversation Flow Modeling

Requirements

tqdm; pytorch=0.4.1; torchtext; numpy; python=3.6; cuda=9.0

Download Processed Data

Please clone this repo, download our processed data here and put it into data directory:

git clone https://github.com/Evan-Gao/conversaional-QG.git
cd conversational-QG
mkdir data

coqg-train/dev/test-3.json: our train/dev/test data split

coqg-coref-test-3.json: coreference test set

Provide the avaialble GPUs in a comma delimeted list following the bash script command, e.g. 0,1. You can find your available GPUs by issuing nvidia-smi

Preprocess

run scripts/preprocess.sh 0,1 for preprocessing.

GloVe vectors are required, please download glove.840B.300d first. run scripts/emb.sh for getting corresponding word embedding.

Train, Generate & Evaluate

run scripts/train.sh 0,1 for training, scripts/generate.sh 0,1 for generation and evaluation

Pretrained Model

We have released our pretrained model here.

Reference

If you use code, please cite our paper as follows:

@inproceedings{Gao2019InterconnectedQG,
	title="Interconnected Question Generation with Coreference Alignment and Conversation Flow Modeling",
	author="Yifan Gao and Piji Li and Irwin King and Michael R. Lyu",
	booktitle="ACL",
	year="2019"
}

conversational-qg's People

Contributors

yifan-gao avatar aantix 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.