Heidelberg-NLP / MHKA

The corresponding code from our paper "Social Commonsense Reasoning with Multi-Head Knowledge Attention (EMNLP 2020)". Do not hesitate to open an issue if you run into any trouble!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social-Commonsense-Reasoning-Multi-Head-Knowledge-Attention

Paper Link: https://www.aclweb.org/anthology/2020.findings-emnlp.267.pdf

This directory contains the following parts of the 'Social Commonsense Reasoning Multi-Head Knowledge Attention' experiment.

MHKA

Reference

If you make use of the contents of this repository, please cite the following paper:

@inproceedings{paul-frank-2020-mhka,
    title = "Social Commonsense Reasoning with Multi-Head Knowledge Attention",
    author = "Paul, Debjit  and Frank, Anette",
    booktitle = In Findings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP),
    month = November,
    year = 2020,
    publisher = "Association for Computational Linguistics"
}

Requirements

- python3.8+
- pytorch

Install the library and dependencies

git clone https://github.com/huggingface/transformers
cd transformers
pip install .
pip install -r ./examples/requirements.txt
pip install tensorflow
pip install ftfy==5.1
conda install -c conda-forge spacy
python -m spacy download en
pip install tensorboardX
pip install tqdm
pip install pandas
pip install ipython

Recreating Results

Results

About

The corresponding code from our paper "Social Commonsense Reasoning with Multi-Head Knowledge Attention (EMNLP 2020)". Do not hesitate to open an issue if you run into any trouble!


Languages

Language:Python 99.8%Language:Shell 0.2%