Code Monkey home page Code Monkey logo

sae's Introduction

SAE

Code for AAAI 2020 paper "Select, Answer and Explain: Interpretable Multi-hop Reading Comprehension over Multiple Documents"

Based on PyTorch

Overview

Evaluation code for SAE-large on HotpotQA leaderboad with pretrained models.

Installation

  1. git clone

  2. Install PyTorch. The code has been tested with PyTorch >= 1.1

  3. Install the requirements

  4. python -m spacy download en_core_web_sm

  5. Download pretrained models. Put zip file into the same folder with main.py, and unzip it.

Running

Create a directory output in the same folder with main.py and then run

python main.py input_file

input_file can be HotpotQA dev file or other data sets organized in the same format with HotpotQA.

By default, the code uses the 0th GPU but you can change it the main.py.

The final prediction pred.json will be in the output folder.

Citation

@inproceedings{tu2020sae,
  title={Select, Answer and Explain: Interpretable Multi-hop Reading Comprehension over Multiple Documents},
  author={Tu, Ming and Huang, Kevin and Wang, Guangtao and Huang, Jing and He, Xiaodong and Zhou, Bowen},
  booktitle={{AAAI 2020 (accepted)}},
  year={2020}
}

sae's People

Contributors

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