cs.CLAug 30, 2026

Named Entity Recognition using Sliding Window Approach

Authors: Hariom Ingle, Ronit Ghode, Ishwari Gondkar, Jidnyasa Harad, Ravindra Murumkar, Raviraj Joshi

Organizations: Department of Information Technology, PICT, Pune, India · L3Cube Labs, Pune, India · Indian Institute of Technology Madras, Chennai, India

Abstract

Named Entity Recognition (NER) is a core NLP task, but transformer-based sentence-level models struggle with long documents because of fixed input-length limits: truncation drops content, and non-overlapping chunking fragments entities at segment boundaries. We introduce an inference-only pipeline that extends a frozen NER model, MahaNER-BERT, fine-tuned on the MahaNER corpus, to document-level prediction via overlapping sliding windows that are merged into a single annotation, without any retraining or architectural change. We evaluate the pipeline on six document-level corpora built from the MahaNER test set using two strategies: Normal Repeat, which duplicates sentence sequences to extend length while preserving contextual continuity, and Random Repeat, which concatenates distinct sequences to produce longer, heterogeneous inputs, each instantiated at three length levels, across several sliding-window configurations. The model retains a macro F1-score of up to 0.8902, with variation staying below one percentage point regardless of document length or construction strategy. Compared with the conventional non-windowed approach, the sliding-window pipeline avoids the boundary-fragmentation errors introduced by non-overlapping segmentation, yielding consistently higher and more stable document-level F1-scores.

Figures & tables

Explore similar work

CardsList
  1. FSE: Continual Learning for Named Entity Recognition by Fast-Slow Experts

    Jul 24, 2026Yunan Zhang, Yang Fan, Heng Li +2Named Entity Recognition

  2. Learning Nested Named Entity Recognition from Flat Annotations

    Feb 28, 2026Igor Rozhkov, Natalia LoukachevitchNamed Entity RecognitionWeakly Supervised Learning

  3. Decoding Text Spans for Efficient and Accurate Named-Entity Recognition

    Apr 22, 2026Andrea Maracani, Savas Ozkan, Junyi Zhu +2Efficient Transformer InferenceNamed Entity Recognition