Nested Named Entity Recognition with Partially-Observed TreeCRFs

Yao Fu, Chuanqi Tan, Mosha Chen, Songfang Huang, Fei Huang
12/15/2020
cs.CLcs.AIcs.LG

Official code: FranxYao/Partially-Observed-TreeCRFs (50 stars, Python, last commit 2021-05-11).

Abstract

Named entity recognition (NER) is a well-studied task in natural language processing. However, the widely-used sequence labeling framework is difficult to detect entities with nested structures.

Show full abstract

In this work, we view nested NER as constituency parsing with partially-observed trees and model it with partially-observed TreeCRFs. Specifically, we view all labeled entity spans as observed nodes in a constituency tree, and other spans as latent nodes. With the TreeCRF we achieve a uniform way to jointly model the observed and the latent nodes. To compute the probability of partial trees with partial marginalization, we propose a variant of the Inside algorithm, the \textsc{Masked Inside} algorithm, that supports different inference operations for different nodes (evaluation for the observed, marginalization for the latent, and rejection for nodes incompatible with the observed) with efficient parallelized implementation, thus significantly speeding up training and inference. Experiments show that our approach achieves the state-of-the-art (SOTA) F1 scores on the ACE2004, ACE2005 dataset, and shows comparable performance to SOTA models on the GENIA dataset. Our approach is implemented at: \url{https://github.com/FranxYao/Partially-Observed-TreeCRFs}.

View on arXivView PDF

Code Implementations(1)

Implementation of AAAI 21 paper: Nested Named Entity Recognition with Partially Observed TreeCRFs

508PythonDec 10, 20205 years ago
crfefficient-inferencenamed-entity-recognitionnested-named-entity-recognitionsum-product+3 more

Similar Papers

Cite this paper

@article{fu2020nested,
  title  = {Nested Named Entity Recognition with Partially-Observed TreeCRFs},
  author = {Yao Fu and Chuanqi Tan and Mosha Chen and Songfang Huang and Fei Huang},
  year   = {2020},
  eprint = {2012.08478},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.08478}
}

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

Discussion