Text Annotation Graphs: Annotating Complex Natural Language Phenomena

Angus G. Forbes, Kristine Lee, Gus Hahn-Powell, Marco A. Valenzuela-Escárcega, Mihai Surdeanu

TL;DR

Text Annotation Graphs (TAG) is a new web-based tool designed to visualize and edit complex natural language annotations that existing software struggles to handle. Its standout feature is the ability to represent "semantic hypergraphs"—relationships between relationships—making it a powerful asset for researchers working with deeply nested event structures in fields like biomedicine.

What Problem Does This Paper Address?

As Natural Language Processing (NLP) moves toward extracting more sophisticated information, the resulting data often resembles a "hairball": a network so dense with overlapping edges that its meaning becomes obscured.

Existing annotation tools like BRAT are excellent for syntactic structures but falter when dealing with complex semantic events. Specifically, they often lack the ability to draw "links between links," which is essential for representing relations that link several predicate-less relations. Furthermore, most tools are tied to the sequential flow of text, making it difficult to visualize relationships that span multiple sentences or to see a high-level summary of a specific event without the surrounding "noise."

Methods

TAG is a web-based application built with JavaScript and the SVG.js library. It introduces several novel UI/UX approaches to annotation:

  • Semantic Hypergraphs: Unlike standard tools, TAG allows users to define relationships where the target or source is another relationship arc, rather than just a word.
  • Three-Panel Interface:
    1. Annotation Panel: The primary workspace showing text with semantic annotations above and syntactic dependencies below.
  • Tree Panel: Generates a "semantic summary" of a selected subgraph, stripping away the linear text sequence to focus purely on the event structure.
  • Options Panel: Provides tools for filtering specific annotation types and toggling layers.
  • Progressive Rendering: To maintain performance, TAG renders text and annotations progressively, allowing it to load massive documents without the lag typically associated with browser-based SVG rendering.
  • Interactive Layout: Users can manually reposition words and vertices to untangle "hairballs," even moving words across different rows to emphasize specific sequences.
Figure 1: A screen capture of the annotation panel in the TAG software. Here a single sentence of biomedical text is shown, with both semantic (top) and syntactic (bottom) relationships toggled on.

Datasets

The paper does not introduce a new benchmark dataset. Instead, it demonstrates TAG's utility using:

  • Biomedical Literature: Specifically, output from the Reach system, which extracts biochemical reactions from scientific articles.
  • Linguistic Examples: Morphological derivations of ambiguous words like "unlockable" to showcase the tool's flexibility across different NLP domains.

Key Insights and Ideas

  • The Power of "Links between Links": By treating relationship arcs as nodes themselves, TAG can represent complex logic (e.g., "Event A inhibits the interaction between Protein B and Protein C") in a way that is visually intuitive and computationally structured.
  • Context-Free Summaries: The Tree Panel (semantic summary) is a major "aha moment." It allows researchers to see the "forest for the trees" by isolating a specific event chain from the linear text, which is particularly useful for finding similar structures across different documents.
  • Dynamic Taxonomy Management: TAG allows users to update visual styles (like color) across an entire taxonomic class. For instance, changing the color of a parent category like "MacroMolecule" automatically updates all child types like "Protein" or "Gene," aiding in rapid visual scanning.
Figure 3: This screen capture shows a user updating the color of all nodes of type ‘Gene or gene product’ via the interactive color picker. In the background, we can see that all examples of this annotation are updated dynamically. Selecting an annotation type that is a parent of ‘Gene or gene product’, such as ‘MacroMolecule’ or ‘Entity’, would also update the color of ‘Gene or gene product’, along with all its other children.

Key Results

  • Improved Readability: The authors demonstrate that TAG provides a much clearer representation of complex events compared to BRAT. In Figure 6, TAG successfully shows a single trigger controlling multiple negative regulation events, whereas BRAT requires separate, disconnected relations.
  • Morphological Flexibility: TAG is shown to easily represent the subtle semantic differences in word derivations (e.g., the two meanings of "unlockable"), a task that is difficult to visualize in standard dependency-based tools.
A comparison showing how TAG handles complex nested events more clearly than BRAT.

Limitations and Future Work

  • Comparative Visualization: The authors are currently working on extending TAG to support comparative tasks, such as displaying semantic annotations from two different extraction systems side-by-side to identify discrepancies.
  • Active Learning Integration: There is a plan to use TAG as a human-in-the-loop interface where users can save "diffs" between automated output and manual corrections to help train better machine learning classifiers.
  • Crowdsourcing: The team is exploring how to adapt the interface for large-scale user studies via platforms like Amazon Mechanical Turk to gather high-quality training data for complex NLP tasks.

Summary updated

BibTeX
@inproceedings{forbes2017text,
  author = {Angus G. Forbes and Kristine Lee and Gus Hahn-Powell and Marco A. Valenzuela-Escárcega and Mihai Surdeanu},
  title = {{Text Annotation Graphs: Annotating Complex Natural Language Phenomena}},
  booktitle = {LREC},
  year = {2017},
}
Figure