samensah / Recurrent_Interaction_Network_EMNLP2020

Here is the code for the paper ``Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations'' accepted by EMNLP2020.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations

Dataset and code for the paper: Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations. Kai Sun, Richong Zhang, Samuel Mensah, Yongyi Mao, Xudong Liu. EMNLP 2020. [pdf]

Overview

In this paper, we focus on leveraging the multitask learning method to solve the joint entities and relations extraction task by taking entity recognition (ER) as one task, and relation classification (RC) as another task. The ER aims to extract all entities in a sentence, and the RC aims to classify the relations between all word pairs. Existing methods using multi-task learning techniques to address the problem learn implicit interactions among the two tasks through a shared network, where the shared information is passed into the task-specific networks for prediction. However, such an approach hinders the model from learning explicit interactions between the two tasks to improve the performance on the individual tasks. As a solution, we design a multitask learning model which we refer to as recurrent interaction network (RIN) which allows the dynamically learning of explicit interactions between the output of two tasks, to effectively model task-specific features for classification.

overview

Requirement

  • Python 3.6.7
  • PyTorch 1.2.0
  • NumPy 1.17.2
  • 100-dimensional word vectors for nyt and webnlg here.
  • GloVe pre-trained word vectors for nyt10 and nyt11:

Usage

Training the model:

python train.py --dataset [dataset]

Prepare vocabulary files for nyt10 and nyt11 datasets (nyt10 and nyt11 will be uploaded soon):

python prepare_vocab.py --dataset [dataset]

Citation

If this work is helpful, please cite as:

@inproceedings{Sun2020RIN,
  author    = {Kai Sun and
               Richong Zhang and
               Samuel Mensah and
               Yongyi Mao and
               Xudong Liu},
  title     = {Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations},
  year      = {2020}
}

License

MIT

About

Here is the code for the paper ``Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations'' accepted by EMNLP2020.


Languages

Language:Python 100.0%