Relation classification is an important NLP task to extract relations between entities. The state-of-the-art methods for relation classification are primarily based on Convolutional or Recurrent Neural Networks. Recently, the pre-trained BERT model achieves very successful results in many NLP classification / sequence labeling tasks. Relation classification differs from those tasks in that it relies on information of both the sentence and the two target entities. In this paper, we propose a model that both leverages the pre-trained BERT language model and incorporates information from the target entities to tackle the relation classification task. We locate the target entities and transfer the information through the pre-trained architecture and incorporate the corresponding encoding of the two entities. We achieve significant improvement over the state-of-the-art method on the SemEval-2010 task 8 relational dataset.
翻译:最新关系分类方法主要基于革命性或经常性神经网络。最近,经过培训的BERT模型在许多NLP分类/序列标签任务中取得了非常成功的结果。关系分类与这些任务不同,因为它既依赖于句子的信息,也依赖于两个目标实体的信息。在本文件中,我们提出了一个模式,既利用经过预先培训的BERT语言模型,又纳入目标实体的信息,以解决关系分类任务。我们确定了目标实体,并通过预先培训的结构传递信息,并纳入了两个实体的相应编码。我们大大改进了SemEval-2010任务8关系数据集的最新方法。