Named entity recognition with document-specific KB tag gazetteers

Will Radford, Xavier Carreras, James Henderson

Abstract

Traditional Named Entity Recognition (NER) relies on expensive, manually annotated gold-standard data. This paper explores an alternative approach: leveraging document-level metadata, such as Wikipedia titles, to generate custom "cheat sheets" or document-specific gazetteers. By tailoring entity lists to individual documents at inference time, this method significantly outperforms large-scale, general-purpose dictionaries, particularly in identifying complex entities like organizations.

Introduction

NER is a fundamental task in Natural Language Processing, identifying people (PER), locations (LOC), and organizations (ORG) within text. While high-quality supervision is typically slow and costly to produce, "cheap" metadata—unaligned document-level tags—is often readily available. For instance, a news article might be tagged with "United Nations" without specifying where the mention occurs or if it appears as "UN." This research investigates how to effectively utilize these unaligned tags to improve token-level NER predictions.

Methodology

The core innovation is the creation of document-specific gazetteers at inference time. Rather than a static, multi-million-entry dictionary, the model utilizes a custom list of entities tailored to the specific document it is currently reading.

Overview of document-specific KB tagging and gazetteer generation.

The approach involves several key components:

  1. Baseline CRF: A standard Conditional Random Field (CRF) model using lexical and linguistic features.
  2. Document-Specific Features: KB tags (canonical names and types) are converted into features. Matches between the text and this "mini-dictionary" provide a strong signal to the model.
  3. KB Aliases: To bridge the gap between canonical names (e.g., "United Nations") and text mentions (e.g., "UN"), Knowledge Base data like Wikipedia redirects are used to expand the document-specific lists with aliases and nicknames.
  4. BMEOW Encoding: Matches are encoded using the Beginning, Middle, End, Outside, Whole scheme, helping the model distinguish the boundaries of known entities.

Experimental Setup

The models were evaluated using the CoNLL 2003 English NER dataset, the industry standard for NER evaluation. To simulate document-level KB tags, the researchers used a version of the dataset augmented with Wikipedia links, allowing them to treat these links as metadata for each document during training and testing.

Results and Discussion

The experimental results demonstrate that contextual precision is more valuable than scale. While a massive general gazetteer can introduce noise due to ambiguity (e.g., "Washington" as a person vs. a city), document-specific gazetteers act as effective constraints.

Comparative performance metrics (Precision, Recall, F-score) for various NER methods on TESTA and TESTB datasets.

Key findings include:

  • Type Information: Knowing the entity type (e.g., ORG) alongside the name provides the most significant performance boost. Just knowing a name exists is often insufficient for high accuracy.
  • Organization Recognition: The method is particularly effective for Organizations (ORG), which often have diverse naming conventions. Document-specific tags yielded a +6.83% gain for ORGs, compared to +2.77% from wide-coverage dictionaries.
  • Human Effort Simulation: Analysis showed that tagging entities in just the first five sentences of a document can outperform massive dictionaries, suggesting a more efficient human-in-the-loop workflow for data labeling.

On the TESTA dataset, the baseline CRF achieved an 87.68% F-score. Adding document-specific KB tags (Names + Types) increased this to 92.70%, and incorporating aliases further improved it to 92.85%.

Conclusion

Document-specific gazetteers provide a powerful and efficient way to boost NER performance by leveraging existing metadata. While the method currently relies on pre-assigned entity types and operates sentence-by-sentence, future work could focus on automatic type prediction and modeling global document-level constraints to further enhance robustness and bridge the gap for sparse Knowledge Bases.

Summary updated

BibTeX
@inproceedings{radford2015named,
  author = {Will Radford and Xavier Carreras and James Henderson},
  title = {{Named entity recognition with document-specific KB tag gazetteers}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1058},
}
Figure