Git Product home page Git Product logo

tacrev's Introduction

TACRED Revisited: A Thorough Evaluation of the TACRED Relation Extraction Task [Paper]

Table of Contents

๐Ÿ”ญย  Overview

Path Description
dataset/ The experiment notebooks expect the patched TACRED dataset splits to be stored here.
notebooks/ This directory contains the notebooks that we used to produce the results in the paper.
patch/ This directory contains the patches for dev and test split of the original TACRED.
results/ This directory contains the predictions of all models on dev (dev_results/) and test split (test_results/).
scripts/ This directory contains scripts, e.g., to apply the patch to TACRED dev or test split.

โœ…ย  Requirements

The code is tested with:

  • Python 3.7
  • Mysql Config 5.7 (required by Errudite)
    # Minimal dependency install (Ubuntu)
    sudo apt install default-libmysqlclient-dev
    

๐Ÿš€ย  Installation

From source

git clone https://github.com/DFKI-NLP/tacrev
cd tacrev
pip install -r requirements.txt  # only necessary for notebooks

๐Ÿ’กย  Patch the original TACRED

Dev Split

python scripts/apply_tacred_patch.py \
  --dataset-file <TACRED DIR>/dev.json \
  --patch-file ./patch/dev_patch.json \
  --output-file ./dataset/dev_rev.json

md5 checksum of patched dev split: ce23ba10ca15bde94a3f733679bf1b05

Test Split

python scripts/apply_tacred_patch.py \
  --dataset-file <TACRED DIR>/test.json \
  --patch-file ./patch/test_patch.json \
  --output-file ./dataset/test_rev.json

md5 checksum of patched test split: dbcce82f5ab67fbfd1062db6cc6b66cd

๐Ÿ”ฌย  Experiments

๐Ÿ“šย  Citation

If you find the code or dataset patch helpful, please cite the following paper:

@inproceedings{alt-etal-2020-tacrev,
    title={TACRED Revisited: A Thorough Evaluation of the TACRED Relation Extraction Task},
    author={Christoph Alt and Aleksandra Gabryszak and Leonhard Hennig},
    year={2020},
    booktitle={Proceedings of ACL},
    url={https://arxiv.org/abs/2004.14855}
}

๐Ÿ“˜ย  License

The code is released under the under terms of the MIT License.

tacrev's People

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.