tieval: An Evaluation Framework for Temporal Information Extraction Systems

Hugo Sousa, Alípio Jorge, Ricardo CamposarXiv 2023 · DOI

TL;DR

tieval is a new open-source Python library designed to standardize the fragmented landscape of Temporal Information Extraction (TIE). By unifying disparate datasets, providing built-in baseline models, and simplifying complex evaluation metrics like "temporal awareness," it offers a much-needed "Swiss Army Knife" for researchers looking to build and benchmark reproducible temporal systems.

What Problem Does This Paper Address?

Temporal Information Extraction (TIE)—the task of identifying events (like "bought") and time expressions (like "yesterday") and the relations between them—is a cornerstone of natural language understanding. However, the field suffers from a major "engineering tax."

Researchers face three primary hurdles:

  1. Format Fragmentation: Datasets are scattered across XML, TimeML, and custom table formats, requiring custom parsers for every new experiment.
  2. Annotation Inconsistency: Different corpora use different sets of temporal relations (e.g., Allen’s 13 interval relations vs. more ambiguous labels).
  3. Evaluation Complexity: Standard metrics like $F_1$ only measure local accuracy. More robust metrics like "temporal awareness" require implementing "temporal closure" (inferring that if A is before B and B is before C, then A is before C), which is mathematically non-trivial and rarely available in off-the-shelf tools.

Methods

The authors developed tieval to provide a unified development pipeline. Key technical features include:

  • Unified Data Model: A hierarchical structure (Dataset → Document → Entity → TLink) that abstracts away the underlying file formats.
  • Point-Based Reasoning: To handle diverse annotation schemes, tieval converts interval relations into relations between endpoints (start/end). For example, "X BEFORE Y" is internally represented as end X < start Y. How interval relations become point relations
  • Timegraph for Temporal Closure: The library builds a directed graph (a "timegraph") of these endpoints. Inferring a relation becomes a graph reachability problem, allowing for efficient computation of temporal awareness metrics. The timegraph representation
  • Built-in Baselines: The library includes pre-trained models for event/timex identification (based on spaCy) and relation classification (CogCompTime2).
Figure 4: How the interval relation BEFORE is represented as a point relation.
Figure 5: On the top part of the image is the relative relations between entities X, Y, and Z. On the bottom is the graphical representation of the timegraph that would be generated.

Datasets

tieval natively supports an extensive list of benchmark corpora, standardizing them into a single format. Supported datasets include:

  • Classic Benchmarks: TimeBank, TempEval-2, and TempEval-3.
  • Specialized/Dense Corpora: MATRES, TimeBank Dense, and TDDiscourse.
  • Multilingual Data: Support for English, Spanish, Portuguese, French, Italian, German, Arabic, Chinese, and more via corpora like MeanTime and AncientTimes.

Key Insights and Ideas

  • The "Data Cleaning" Revelation: While standardizing the AQUAINT corpus, the authors discovered duplicate articles with conflicting annotations and different document creation times. This highlights how tieval acts as a quality-control layer for the field.
  • Simplicity Wins: A simple spaCy-based NER baseline (TimexIdentificationBaseline) achieved effectiveness comparable to the widely-used, specialized HeidelTime model on several benchmarks, suggesting that modern general-purpose NLP tools are catching up to domain-specific ones.
  • Efficiency of Closure: Despite the theoretical complexity of temporal reasoning, the authors' implementation is highly performant, processing 95% of documents in under 0.5 seconds on standard consumer hardware.

Key Results

The authors benchmarked four integrated models across three major corpora (Platinum, TCR, and MeanTime).

Model Platinum ($F_1$) TCR ($F_1$) MeanTime ($F_1$)
TimexBaseline 81.2 78.6 33.5
HeidelTime 81.8 75.3 37.8
EventBaseline 77.5 63.5 34.9
CogCompTime2 39.7 75.4 29.6

Note: CogCompTime2 results include "Temporal $F_1$" (TF1) in parentheses, providing a more holistic view of its temporal reasoning capabilities.

Limitations and Future Work

The authors acknowledge a "reproducibility gap": because tieval implements necessary data-cleaning processes (fixing spans and errors in original annotations), results obtained through the framework may not perfectly match those reported in original papers that used the "raw" (and sometimes broken) data.

Future directions include: * Visualization: Tools to display relative timelines of events graphically. * Expanded Scope: Adding support for coreference resolution and causality relations. * New Paradigms: Supporting TIE tasks framed as Question-Answering (e.g., MCTaco and TORQUE).

tieval is available as an open-source package on GitHub and PyPI.

Summary updated

BibTeX
@misc{sousa2023tieval,
  author = {Hugo Sousa and Alípio Jorge and Ricardo Campos},
  title = {{tieval: An Evaluation Framework for Temporal Information Extraction Systems}},
  year = {2023},
  eprint = {2301.04643},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.04643},
}
Figure