DFKI-NLP / RelEx

RelEx - A simple framework for Relation Extraction built on AllenNLP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RelEx

A simple framework for Relation Extraction built on AllenNLP.


πŸ”­  Overview

Path Description
configs/ This directory contains model configurations for relation classification.
scripts/ This directory contains scripts, e.g., for evaluating a model with a dataset-specific scorer.

βœ…  Requirements

RelEx is tested with:

  • Python 3.7

πŸš€  Installation

With pip

<TBD>

From source

git clone https://github.com/DFKI-NLP/RelEx
cd RelEx
pip install .

πŸ”§  Usage

Training

allennlp train \
    ./configs/relation_classification/tacred/baseline_cnn_tacred.jsonnet \
    -s <RESULTS DIR> \
    --include-package relex

πŸ‘Ύ  Models

Model Link Description
[Link]

πŸ“š  Citation

@misc{alt-etal-2020-relex,
  author = {Christoph Alt and Marc H\"{u}bner and Leonhard Hennig},
  title = {RelEx},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/DFKI-NLP/RelEx}}
}

Also, please consider cite the following paper when using RelEx:

@inproceedings{alt-etal-2020-probing,
    title={Probing Linguistic Features of Sentence-level Representations in Neural Relation Extraction},
    author={Christoph Alt and Aleksandra Gabryszak and Leonhard Hennig},
    year={2020},
    booktitle={Proceedings of ACL},
    url={https://arxiv.org/abs/}
}

πŸ“˜  Licence

RelEx is released under the terms of the Apache 2.0 License.

About

RelEx - A simple framework for Relation Extraction built on AllenNLP

License:Apache License 2.0


Languages

Language:Jsonnet 60.5%Language:Python 39.5%