Code Monkey home page Code Monkey logo

discourse-aware-semantic-self-attention's Introduction

Discourse-Aware Semantic Self Attention for Narrative Reading Comprehension

This repository contains code for the EMNLP-IJCNLP 2019 paper Discourse-aware Semantic Self-Attention for Narrative Reading Comprehension.

@inproceedings{mihaylov-frank-2019-dassa,
    title = "Discourse-Aware Semantic Self-Attention for Narrative Reading Comprehension",
    author = "Mihaylov, Todor  and Frank, Anette",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)",
    month = nov,
    year = "2019",
    address = "Hong Kong, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/D19-1257",
    doi = "10.18653/v1/D19-1257",
    pages = "2541--2552",
}

Setting Up the Environment

  1. Create the dassa environment using Anaconda
conda create -n dassa python=3.6
  1. Activate the environment
source activate dassa
  1. Install the requirements in the environment:
pip install -r requirements.txt

Install pytorch that supports cuda8 cuda 8:

pip install torch==0.4.1

Prepare data

Processed narrativeqa data is located in data/ folder. To prepare the data run:

bash data/prepare_data.sh

Train models

See TRAIN.md

Evaluate trained models

See EVALUATE.md

discourse-aware-semantic-self-attention's People

Contributors

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