Understanding the resource, its creation, and how modern transformer models are applied. L3CubeMahaNER is a publicly released corpus for Named Entity Recognition (NER) in Marathi, one of the major Indic languages spoken by over 80million people. The resource was curated by the Language Technologies Research Group at the L3Cube research lab and released under a CCBY4.0 license, allowing unrestricted academic and commercial use. The primary goal of the dataset is to fill the longstanding gap of highquality, domaindiverse annotated text for Marathi. While several Indianlanguage NER corpora exist for Hindi, Bengali, or Tamil, Marathi has lagged behind, limiting progress on downstream applications such as information extraction, question answering, and conversational agents. The corpus consists of 10,000 sentences selected from news articles, government reports, Wikipedia, and social media, providing a realistic mix of formal and informal language. The annotation follows the widely adopted BIO tagging format (Beginning, Inside, Outside) and covers the four coarsegrained entity types: Example (transliterated): Annotators were native Marathi speakers with a background in linguistics. Each sentence was doubleannotated and disagreements were resolved through a third adjudicator, ensuring a Cohens Kappa of 0.91 (excellent agreement). The split follows the conventional 80/10/10 ratio: Transformerbased language models have become the defacto standard for sequence labeling tasks. For Marathi, several BERTstyle models are available: All three were finetuned on the L3CubeMahaNER training split using a tokenclassification head. The typical hyperparameters were: The following table summarises the microaveraged precision, recall and F1score achieved on the official test set. Adding a Conditional Random Field (CRF) on top of the BERT token classifier yields the best performance, confirming that modeling label dependencies (e.g., ensuring ILOC follows BLOC) improves consistency. Error analysis revealed two dominant failure modes: The dataset can be downloaded from the official GitHub repository: Inside the repository you will find three JSONlines files ( A minimal PyTorch training script using Transformers is provided in the Researchers can also experiment with other architectures (BiLSTMCRF, spaCy, Flair) by converting the JSONL to CoNLL2003 format using the helper script Since its release, the community has extended L3CubeMahaNER with: Contributions are welcomed via pull requests and issue tracking on the GitHub repo. L3CubeMahaNER: A Marathi Named Entity Recognition Dataset & BERT Models
Dataset Overview
Annotation Scheme
LOCB LOCI O O PERB PERI PERI.
Key Statistics
Metric Count Total sentences 10,000 Total tokens 165,432 PER entities 7,842 LOC entities 6,571 ORG entities 4,283 MISC entities 1,957 Average sentence length 16.5 tokens
BERT for Marathi NER
Why BERT Works Well for Marathi
Experimental Results
Model Precision Recall F1Score IndicBERT 88.3% 86.7% 87.5% MuRIL 90.1% 88.9% 89.5% MarathiBERT 91.2% 90.4% 90.8% MarathiBERT + CRF layer 92.0% 91.5% 91.8%
How to Use the Dataset
git clone https://github.com/L3Cube-MahaNER/mahaner.git
train.jsonl, dev.jsonl, test.jsonl) where each line contains a JSON object: { "sentence": " ", "labels": ["LOCB", "LOCI", "O", "O", "O", "O"]} examples/ folder. The script demonstrates:
datasets.load_datasetMarathiBertTokenizer)seqevaljsonl_to_conll.py. Community Contributions
DATE, TIME)
