Abstract
Traditional Named Entity Recognition (NER) models typically treat entities as flat, non-overlapping spans. However, in many domains, entities are naturally nested. This paper reformulates NER as a constituency parsing problem, utilizing a discriminative parser to identify hierarchical entity structures. This approach yields significant performance gains, particularly in datasets with high degrees of nesting, such as the GENIA and AnCora corpora.
Introduction
Most NER systems rely on sequence models like Conditional Round Fields (CRFs) that assign a single label to each token. While effective for simple entities, these models struggle with nested structures where one entity resides within another—for example, "[ [Bank]<sub>Location</sub> of [China]<sub>Location</sub> ]<sub>Organization</sub>". In such cases, a standard CRF is forced to choose a single label, losing the hierarchical information.
Nested entities are prevalent in specialized domains, accounting for 17% of the GENIA biomedical corpus and nearly 50% of the AnCora Spanish/Catalan corpus. Historically, these have been ignored due to the mathematical limitations of linear models. Finkel and Manning address this by moving beyond linear sequences to a tree-based representation.
Methodology: NER as Parsing
The core innovation is treating each named entity as a constituent in a phrase structure tree.
Tree Construction and Modeling
In this framework, a sentence is represented as a constituency tree where leaves are words and internal nodes represent entity types. Sentences without entities are represented as a root node directly connected to the words. The authors employ a discriminative constituency parser (a CRF-CFG) that uses clique potentials to score subtrees based on a diverse set of features.
Structural Features and Binarization
By adopting a tree structure, the model can leverage "vertical" context—features that linear models cannot access. For instance, the model can consider the label of a "parent" or "grandparent" entity. This allows it to learn probabilistic dependencies, such as the likelihood of a Protein being nested within a DNA entity. To maintain computational efficiency, the authors use right-branching binarization and horizontal Markovization.
Evaluation and Results
The model was evaluated on three major datasets: GENIA (v3.02), a biomedical corpus with heavy nesting; AnCora (Spanish/Catalan), newspaper text with high nesting rates; and JNLPBA 2004, a "flattened" version of GENIA used to test performance on traditional NER tasks.
The results demonstrate the power of the parsing approach. On the AnCora Spanish corpus, the nested model achieved an F1-score of 64.55, a massive improvement over the 34.25 achieved by a flat semi-CRF. On the GENIA corpus, it reached an F1 of 70.33, outperforming the semi-CRF's 68.19. Notably, the model remained competitive even on the flattened JNLPBA task, suggesting that modeling internal structure helps identify the boundaries of top-level entities more accurately.
Discussion and Limitations
The primary trade-off for this structural accuracy is computational complexity. The parsing algorithm operates at $O(n^3)$, resulting in a processing speed of approximately 38 words per second, compared to 4,000 words per second for a standard CRF.
Future work may involve integrating actual syntactic information (e.g., noun phrase boundaries) or improving tokenization for complex biomedical terms. Despite the speed penalty, the "NER as Parsing" approach proves that hierarchical context is a vital signal for accurate entity recognition in complex domains.
Summary updated