﻿# NEREL: preserve nested entities and relation boundaries

Preserve NEREL nested spans and relation endpoints when preparing Russian information extraction, and distinguish entity recognition from linking.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-nerel-nested-entity-links/
Language: en

## Choose the nested extraction task

NEREL supports Russian named entity recognition and relation extraction with nested mentions and discourse-level relations. The [dataset paper](https://arxiv.org/abs/2108.13112) explains why inner and outer mentions both matter. It is useful when a system must recover structured information rather than only highlight one non-overlapping entity per token. Define whether the intended evaluation covers entity spans, relation extraction, events or linking before choosing a model architecture and output schema.

## Pin the annotation release and splits

The [official repository](https://github.com/nerel-ds/NEREL) distinguishes version 1.0 from version 1.1, which adds linked entities, and preserves train, dev and test directories. Keep the selected version and document membership intact. Entity-linking annotations add a task layer; they do not replace the entity and relation problem. Mixing files from different release folders without matching document identities can introduce duplicate examples or combine incompatible assumptions about which annotation layers are available.

## Preserve character spans and annotation identity

The dataset's [linking study](https://aclanthology.org/2022.lrec-1.474.pdf) describes BRAT standoff files, while the [BRAT format reference](https://brat.nlplab.org/standoff.html) defines text files paired with separate annotation files. Spans use character offsets into unchanged document text; relations point to annotation identifiers. Preserve nested spans as a collection rather than forcing them into a single BIO sequence. Normalizing whitespace, Unicode or punctuation before remapping offsets can invalidate mention boundaries even when the visible text seems nearly identical.

## Keep relation arguments after conversion

An inner entity may be an argument of a relation independently of the outer entity containing it. A proposed JSON export should retain entity identifiers, types, complete boundaries and relation direction before deriving model-specific examples. Validate every relation endpoint against the exported mention inventory. The [provenance guide](/journal/document-markdown-json-provenance/) explains how to preserve such transformation lineage. Report whether relation evaluation assumes gold entities or predicted entities, since these procedures measure different error sources.

## Evaluate boundaries, types and linking separately

Exact span-and-type matching can reveal errors that a partial-overlap score hides. Entity linking additionally requires choosing a knowledge-base target or handling a missing target; a recognized mention is not automatically a correct link. The linking study discusses this distinction for nested mentions. Preserve document-level splits when generating sentence examples, following the [split leakage guide](/journal/document-level-data-split-leakage/). Results on Russian news-derived material do not establish equal performance on other registers or on the separately documented biomedical extension.
