HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Nested Named Entity Recognition with Partially-Observed TreeCRFs

Yao Fu Chuanqi Tan Mosha Chen Songfang Huang Fei Huang

Nested Named Entity Recognition with Partially-Observed TreeCRFs

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. 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}.

Code Repositories

FranxYao/Partially-Observed-TreeCRFs
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
nested-named-entity-recognition-on-ace-2004PO-TreeCRFs
F1: 86.6
nested-named-entity-recognition-on-ace-2005PO-TreeCRFs
F1: 85.4
nested-named-entity-recognition-on-geniaPO-TreeCRFs
F1: 78.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp