A Flexible Stand-Off Data Model with Query Language for Multi-Level Annotation

Christoph MüllerACL 2005

Abstract

In computational linguistics, the creation of richly annotated corpora is essential for training models and conducting linguistic research. These corpora often involve multiple layers of information—ranging from part-of-speech (POS) tags and syntactic trees to coreference chains and dialogue acts. However, managing these overlapping layers presents significant technical challenges. This paper introduces a flexible, XML-based "stand-off" data model and a simplified query language designed for multi-level linguistic annotation. By decoupling annotation layers from the raw text and each other, the MMAX2 system allows researchers to perform complex, cross-layer queries without requiring expertise in formal XML query logic.

Introduction

Traditional methods of corpus annotation often rely on "inline" tagging, where annotations are embedded directly within the text. This approach frequently leads to "tag soup," making the files difficult to read and nearly impossible to manage when multiple overlapping hierarchies are involved. Furthermore, if annotations are stored separately (stand-off) but depend explicitly on one another, the system becomes brittle; changing one layer can break the entire structure.

The author identifies two primary gaps in current linguistic data management:

  1. Data Modularity: The need for a system where annotation levels are independent modules that can be added, removed, or replaced without re-processing the entire corpus.
  2. Usability: The need for a query language that allows researchers to think in terms of linguistic relationships rather than the underlying structural properties of XML.

The Stand-Off Data Model

The MMAX2 system addresses these challenges through a robust stand-off mechanism. In this model, the "basedata" (the raw text or transcript) is stored in a primary XML file, while every annotation level (e.g., "utterances," "POS tags") is stored in its own separate XML file.

Implicit Relations and Markables

Rather than having Level A point directly to Level B, MMAX2 utilizes implicit relations where both levels point to the same spans in the basedata. This design makes the levels "self-contained modules." The basic units of annotation are called markables, which can represent continuous sequences of words or even discontinuous fragments. This flexibility is crucial for capturing complex linguistic phenomena that do not follow a linear structure.

Simplified MMAXQL

To make querying accessible to non-experts, the author developed "Simplified MMAXQL," a shorthand language that abstracts the complexity of the underlying data.

The "Event" Metaphor

The language treats linguistic annotations as "events" occurring over a timeline (the sequence of words). Drawing inspiration from Allen’s interval algebra (1991), the language uses intuitive temporal operators to relate different annotation levels:

  • Sequence Operators: before, meets
  • Containment Operators: during, contains, equals

Query Syntax and Conciseness

Users can query basedata using regular expressions (e.g., '[Tt]he') or query markables using attribute-value pairs (e.g., /pn for pronouns). A major feature of the language is "conciseness via defaults." If an attribute name is unique across all levels, the user can omit the level name, making queries significantly shorter and more readable than standard XML query languages like XQuery.

Evaluation: The ICSI Meeting Corpus

The paper demonstrates the utility of the MMAX2 model using the ICSI meeting corpus, a collection of spoken multi-party dialogues. This dataset is particularly demanding because it requires multiple annotation levels, including speaker turns, "meta" information (pauses, breathing, noise), and the raw transcript.

The implementation shows that MMAX2 can handle highly complex, nested queries. For example, a user can find instances of the phrase "you know" that occur within segments spoken by specific speakers that also contain a specific emphasis or pause. The system successfully hides the complexity of the XML structure, allowing a query that might take dozens of lines in XQuery to be expressed in a single, readable line.

Conclusion and Future Work

The MMAX2 system provides a powerful framework for managing and querying multi-level annotations through modularity and abstraction. By treating annotations as independent yet related events, it offers a level of flexibility previously unavailable in standard annotation tools.

While the current implementation is robust, the author acknowledges several areas for future development:

  • Distance Constraints: Improving the ability to query for items that are a specific number of words apart.
  • Advanced Search: Enhancing support for wildcards and proximity searches.
  • Automated Annotation: Developing the capability for the system to automatically create new markables based on query results, effectively allowing the query language to generate new annotation layers dynamically.

Summary updated

BibTeX
@inproceedings{muller2005flexible,
  author = {Christoph Müller},
  title = {{A Flexible Stand-Off Data Model with Query Language for Multi-Level Annotation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2005},
}
Figure