GithubHelp home page GithubHelp logo

yifan-gao / distractor-generation-race Goto Github PK

View Code? Open in Web Editor NEW
68.0 8.0 22.0 99.58 MB

[AAAI 2019] Generating Distractors for Reading Comprehension Questions from Real Examinations

Home Page: https://arxiv.org/abs/1809.02768

Python 99.20% Shell 0.80%
nlp text-generation question-answering reading-comprehension

distractor-generation-race's Introduction

Distractor-Generation-RACE

Dataset for our AAAI 2019 paper: Generating Distractors for Reading Comprehension Questions from Real Examinations https://arxiv.org/abs/1809.02768

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

@inproceedings{gao2019distractor,
	title="Generating Distractors for Reading Comprehension Questions from Real Examinations",
	author="Yifan Gao and Lidong Bing and Piji Li and Irwin King and Michael R. Lyu",
	booktitle="AAAI-19 AAAI Conference on Artificial Intelligence",
	year="2019"
}

Distractor Generation: A New Task

In the task of Distractor Generation (DG), we aim at generating reasonable distractors (wrong options) for multiple choices questions (MCQs) in reading comprehension.

The generated distractors should:

  • be longer and semantic-rich
  • be semantically related to the reading comprehension question
  • not be paraphrases of the correct answer option
  • be grammatically consistent with the question, especially for questions with a blank in the end

Here is an example from our dataset. The question, options and their relevant sentences in the article are marked with the same color.

Real-world Applications

  • Help the preparation of MCQ reading comprehension datasets
    • The existence of distractors fail existing content-matching SOTA reading comprehension on MCQs like RACE dataset
    • Large datasets can boost the performance of MCQ reading comprehension systems
  • Alleviate instructors' workload in designing MCQs for students
    • Poor distractor options can make the questions almost trivial to solve
    • Reasonable distractors are time-consuming to design

Processed Dataset

The data used in our paper is transformed from RACE Reading Comprehension Dataset. We prune the distractors which have no semantic relevance with the article or require some world knowledge to generate.

The processed data is put in the /data/ directory. Please uncompress it first.

Here is the dataset statistics.

Note Due to a bug in spacy, actually more examples in RACE dataset should be filtered by our rule. But we were not aware of this issue when we did this project. Here we release both the original dataset race_train/dev/test_original.json and the updated dataset race_train/dev/test_updated.json. Because of the smaller dataset size, the performance will be worse if the model is trained on the updated dataset.

Code

Our implementation is based on OpenNMT-py.

Preprocess

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

Train, Generate & Evaluate

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

distractor-generation-race's People

Contributors

yifan-gao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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