An Annotation Type System for a Data-Driven NLP Pipeline

Udo Hahn, Ekaterina Buyko, Katrin Tomanek, Scott Piao, John McNaught, Yoshimasa Tsuruoka, Sophia Ananiadou

Introduction

The proliferation of Natural Language Processing (NLP) components—such as tokenizers, part-of-speech (POS) taggers, and parsers—has provided researchers with a powerful toolkit. However, integrating these disparate tools into a cohesive pipeline remains a significant challenge. The primary hurdle is the "data conversion" problem: different tools often employ incompatible tagsets and custom data formats. While frameworks like GATE and ATLAS have attempted to address this through data-driven architectures, they often lack a standardized, implementation-independent specification for data exchange. This paper proposes a unified, object-oriented annotation schema designed to abstract away code-level details, enabling a "plug-and-play" approach to NLP pipeline construction.

Methodology: The UIMA-based Schema

The proposed system is built upon the Unstructured Information Management Architecture (UIMA), a framework that facilitates data exchange between components via a Common Analysis System (CAS). The core of this proposal is an object-oriented annotation schema defined through an inheritance hierarchy of Types (feature structures) and Features (slots).

UML class diagram of the multi-layered annotation type system.

As illustrated in the UML diagram above, the schema is organized into several distinct layers that cover the full spectrum of linguistic analysis:

  1. Document Metadata: Captures bibliographical information, such as PubMed-specific headers and Dublin Core elements.
  2. Document Structure & Style: Models the physical and rhetorical organization of a document, including sections, paragraphs, and figures.
  3. Morpho-Syntax: Handles low-level linguistic features like tokenization, stemming, and POS tagging.
  4. Syntax: Supports both shallow parsing (chunking) and deep parsing (constituent and dependency-based).
  5. Semantics: Focuses on named entity recognition, with specialized support for the biomedical domain (e.g., genes and proteins).

A foundational element of this architecture is the base Annotation type, which includes features for componentId (to track the source tool) and a confidence score, ensuring provenance and quality control throughout the pipeline.

Key Insights and Architectural Features

The schema's design offers several advantages for complex NLP tasks:

  • Object-Oriented Flexibility: The inheritance model allows for domain-specific extensions. For instance, a generic Constituent can be specialized into a PTBConstituent (Penn Treebank) or a GENIAConstituent without disrupting the core pipeline logic.
  • Support for Parallel Annotations: By tracking the componentId, the system can store and compare multiple annotations for the same text span. This is particularly useful for ensemble methods or evaluating competing tools simultaneously.
  • Handling Discontinuity: To address complex linguistic structures like "T and B cell," the schema introduces a DiscontinuousAnnotation type that elegantly links non-contiguous text spans into a single logical unit.
  • Direct Resource Linking: Through the LexiconEntry type, text spans can be directly mapped to external ontologies and databases, a critical feature for entity normalization in text mining.

Implementation and Results

The schema has been successfully implemented within the UIMA runtime environment. By adhering to formal specifications, the system ensures that all annotations are interoperable and can be exported to standard formats like XMI (XML Metadata Interchange). While this architectural paper does not focus on traditional performance metrics like F1-scores, the primary result is a robust, standardized framework that supports major corpora such as PubMed/MEDLINE, the Penn Treebank, and GENIA.

Future Directions

Current limitations include a lack of support for discourse-level phenomena, such as cross-sentence coreference resolution. Future work aims to expand the semantic layer beyond named entities to represent complex relationships and domain-specific events, such as protein-protein interactions in biomedical literature.

Summary updated

BibTeX
@inproceedings{hahn2007annotation,
  author = {Udo Hahn and Ekaterina Buyko and Katrin Tomanek and Scott Piao and John McNaught and Yoshimasa Tsuruoka and Sophia Ananiadou},
  title = {{An Annotation Type System for a Data-Driven NLP Pipeline}},
  booktitle = {LAW @ ACL},
  year = {2007},
}
Figure