Extracting Multiple-Relations in One-Pass with Pre-Trained Transformers

Haoyu Wang, Ming Tan, Mo Yu, Shiyu Chang, Dakuo Wang +3 more
2/4/2019
cs.CLcs.AI
transformer-attention

Official code: helloeve/mre-in-one-pass (82 stars, Python, Apache-2.0, last commit 2019-07-24).

Abstract

Most approaches to extraction multiple relations from a paragraph require multiple passes over the paragraph. In practice, multiple passes are computationally expensive and this makes difficult to scale to longer paragraphs and larger text corpora.

Show full abstract

In this work, we focus on the task of multiple relation extraction by encoding the paragraph only once (one-pass). We build our solution on the pre-trained self-attentive (Transformer) models, where we first add a structured prediction layer to handle extraction between multiple entity pairs, then enhance the paragraph embedding to capture multiple relational information associated with each entity with an entity-aware attention technique. We show that our approach is not only scalable but can also perform state-of-the-art on the standard benchmark ACE 2005.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Implementation for Extracting Multiple-Relations in One-Passwith Pre-Trained Transformers

8220PythonMay 30, 20197 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2019extracting,
  title  = {Extracting Multiple-Relations in One-Pass with Pre-Trained Transformers},
  author = {Haoyu Wang and Ming Tan and Mo Yu and Shiyu Chang and Dakuo Wang and Kun Xu and Xiaoxiao Guo and Saloni Potdar},
  year   = {2019},
  eprint = {1902.01030},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.01030}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.01030.svg)](https://codeofpaper.com/paper/1902.01030)

Discussion