Temporal Expression Extraction (TIMEX)

Machine Learning
Type
NLP information-extraction task

What does it do?

Temporal expression extraction is a natural-language-processing task that detects dates, times, durations, and frequencies in text and normalises them to the TimeML/TIMEX3 standard.

It turns time references scattered through free text into structured, machine-readable values. Those values can then support event timelines and chronological analysis.

The intuition behind the method

Human writing is full of time references, such as 'last Tuesday', 'in 2007', 'every two weeks', or 'three days later'. A person resolves these effortlessly against context, but a machine reads them as plain words. The goal of temporal expression extraction is to find these mentions and pin each one to an explicit, comparable value. Rather than leaving 'next Friday' as text, the method anchors it to a calendar value so that events can be ordered.

History

Temporal expressions are annotated under the TimeML/TIMEX3 standard. Strötgen and Gertz's 'Multilingual and Cross-Domain Temporal Tagging', published in Language Resources and Evaluation (online 2012), extended temporal tagging beyond a single language and domain.

When to use it

Use temporal expression extraction when your text mentions dates, times, durations, or frequencies and you need them in a normalised, comparable form, for example to build event timelines or to order events chronologically. The text must be in a language that the chosen tagger explicitly supports; language coverage is set by the tagger, so confirm it in the tagger's documentation before use. The reference (context) date of each document must be known, because relative expressions such as 'last week' cannot be resolved without it. Do not use the method for text in unsupported languages, or for documents where no anchor date can be established, since the relative expressions will remain unresolved.

Limitations and considerations

  • Works only for languages that the chosen tagger explicitly supports; language coverage is set by the tagger and must be checked in its documentation.
  • Requires a known reference (context) date; without it, relative expressions cannot be normalised.
  • Implicit or vague time references that lack a clear anchor remain difficult to resolve.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Normalises varied, free-form time references to a single TIMEX3 standard, so that they can be compared directly.
  • Resolves relative expressions such as 'yesterday' or 'next month' against a reference date into concrete values.
  • Produces sortable values that can be placed directly on an event timeline across documents.

Applications

  • Constructing event timelines from documents for chronological analysis.
  • Ordering events in news, clinical notes, or historical text by their normalised dates.
  • Extracting durations and recurring schedules from free-text descriptions.
  • Supporting downstream temporal reasoning and event-ordering tasks.

How it works

How it works

1

The input text is tokenised and split into units that a tagger can scan. The document's reference time, the date to which relative expressions such as 'yesterday' are anchored, is identified at this stage because it is needed for normalisation.

2

Candidate spans are located in the running text: explicit dates and times, durations, and frequency or recurrence phrases. Taggers that follow TimeML-style conventions, such as HeidelTime or SUTime, mark these spans, and detection quality depends on the tagger and on the language. Choose a tagger by checking, in its documentation, the languages, domains and output formats it supports.

3

Each detected span is assigned a TIMEX3 value. Relative phrases are resolved against the reference time, so that 'last week' or 'in two days' becomes a concrete date or duration instead of text whose meaning depends on when it is read.

4

Normalised values are sorted into a chronological sequence, so that the order and spacing of time-stamped mentions in the document can be inspected. This step is downstream of extraction: it uses the TIMEX3 output and is not part of span detection.

Common pitfalls

  • Applying the method to an unsupported language degrades or breaks recognition.
  • Omitting the reference date leaves relative expressions such as 'last week' unresolved.
  • Skipping preprocessing or tokenisation can cause time spans to be missed or split incorrectly.
  • Using detected spans without normalisation discards the comparable TIMEX3 values that the task is meant to produce.
  • Words that can be read as time expressions in some contexts, such as 'May' used as a modal verb rather than a month, may be tagged wrongly; check these cases by hand.
  • Comparing normalised values of different precision as if they were equally exact can mislead, because a year-level value and a day-level value record different amounts of information.

Frequently asked questions

What is TIMEX3?

TIMEX3 is the temporal expression markup of the TimeML standard. It defines how dates, times, durations, and frequencies found in text are encoded as normalised, machine-readable values, so that 'next Friday' becomes a concrete calendar value rather than raw text.

Why does it need a reference date?

Many expressions are relative, such as 'yesterday', 'two weeks ago', or 'next month'. They can only be resolved into an explicit value relative to a known context (reference) time. Without that anchor, relative expressions cannot be normalised.

Does it work in languages other than English?

It works for English and for other languages that the chosen tagger explicitly supports. Language coverage is set by the tagger, so check its documentation before applying the method to a new language. Multilingual and cross-domain temporal tagging (Strötgen & Gertz) broadened the scope of the work, but applying the method to an unsupported language degrades recognition.

What is the difference between detection and normalisation?

Detection finds the spans of text that mention a time, while normalisation maps each detected span to a standardised TIMEX3 value. Detection alone shows where a time is mentioned; normalisation makes that mention comparable across the document.

Related methods

Sources

  1. Verhagen, M. et al. (2007). SemEval-2007 Task 15: TempEval Temporal Relation Identification.

    Open publication reference
  2. Strötgen, J. & Gertz, M. (2013). Multilingual and Cross-Domain Temporal Tagging. Language Resources and Evaluation (LRE).

    Open DOI reference