A Unified Generative Framework for Various NER Subtasks

Hang Yan, Tao Gui, Junqi Dai, Qipeng Guo, Zheng Zhang +1 more
6/2/2021
cs.CL

Official code: yhcc/BARTNER (222 stars, Python, last commit 2022-08-22).

Abstract

Named Entity Recognition (NER) is the task of identifying spans that represent entities in sentences. Whether the entity spans are nested or discontinuous, the NER task can be categorized into the flat NER, nested NER, and discontinuous NER subtasks.

Show full abstract

These subtasks have been mainly solved by the token-level sequence labelling or span-level classification. However, these solutions can hardly tackle the three kinds of NER subtasks concurrently. To that end, we propose to formulate the NER subtasks as an entity span sequence generation task, which can be solved by a unified sequence-to-sequence (Seq2Seq) framework. Based on our unified framework, we can leverage the pre-trained Seq2Seq model to solve all three kinds of NER subtasks without the special design of the tagging schema or ways to enumerate spans. We exploit three types of entity representations to linearize entities into a sequence. Our proposed framework is easy-to-implement and achieves state-of-the-art (SoTA) or near SoTA performance on eight English NER datasets, including two flat NER datasets, three nested NER datasets, and three discontinuous NER datasets.

View on arXivView PDF

Code Implementations(1)

yhcc/BARTNEROfficial100%
22222PythonMay 23, 20214 years ago

Similar Papers

Cite this paper

@article{yan2021unified,
  title  = {A Unified Generative Framework for Various NER Subtasks},
  author = {Hang Yan and Tao Gui and Junqi Dai and Qipeng Guo and Zheng Zhang and Xipeng Qiu},
  year   = {2021},
  eprint = {2106.01223},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.01223}
}

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/2106.01223.svg)](https://codeofpaper.com/paper/2106.01223)

Discussion