Tathagat Agrawal

Multilingual NER with mBERT

Fine-tuned multilingual BERT for Hindi and English named entity recognition, ahead of Indic-BERT and XLM-R baselines. Published at ICCCNT 2024.

December 2023 · Published · · Paper (ICCCNT 2024)

Result: F1 of 0.899 on HiNER (Hindi) and 0.946 on WikiNEuRal (English).

The problem

Named entity recognition (finding names of people, places, organisations and so on in text) is well served for English, but much less so for Hindi, which has fewer labelled datasets. The question was whether a single multilingual model, fine-tuned per language, could match or beat models built for Indian languages.

What I did

Result

Dataset Language F1
HiNER Hindi 0.899
WikiNEuRal English 0.946

mBERT outperformed the Indic-BERT and XLM-R baselines on both. The work was published at ICCCNT 2024 (paper).

Built with

Named entity recognition, Fine-tuning (SFT, LoRA), Hugging Face Transformers, PyTorch, Classic NLP (NLTK, spaCy), Python