Skip to main content
QUICK REVIEW

[Paper Review] L3Cube-MahaNLP: Marathi Natural Language Processing Datasets, Models, and Library

Raviraj Joshi|arXiv (Cornell University)|May 29, 2022
Natural Language Processing TechniquesComputer Science9 citations
TL;DR

L3Cube-MahaNLP introduces the first comprehensive suite of Marathi NLP resources, including monolingual datasets (MahaCorpus), task-specific datasets (MahaSent, MahaNER, MahaHate), and corresponding fine-tuned BERT, RoBERTa, ALBERT, and GPT models. The work establishes state-of-the-art performance on Marathi sentiment analysis, named entity recognition, and hate speech detection, with models publicly released via Hugging Face and GitHub to support production-ready NLP applications in low-resource Marathi.

ABSTRACT

Despite being the third most popular language in India, the Marathi language lacks useful NLP resources. Moreover, popular NLP libraries do not have support for the Marathi language. With L3Cube-MahaNLP, we aim to build resources and a library for Marathi natural language processing. We present datasets and transformer models for supervised tasks like sentiment analysis, named entity recognition, and hate speech detection. We have also published a monolingual Marathi corpus for unsupervised language modeling tasks. Overall we present MahaCorpus, MahaSent, MahaNER, and MahaHate datasets and their corresponding MahaBERT models fine-tuned on these datasets. We aim to move ahead of benchmark datasets and prepare useful resources for Marathi. The resources are available at https://github.com/l3cube-pune/MarathiNLP.

Motivation & Objective

  • Address the critical lack of NLP resources for Marathi, India's third most spoken language, which remains under-resourced despite its widespread use.
  • Develop production-quality datasets and models to move beyond small benchmark datasets that lack real-world utility.
  • Create a dedicated, open-source library and ecosystem for Marathi NLP to support both academic research and industrial applications.
  • Establish monolingual pre-trained models (MahaBERT, MahaRoBERTa, MahaAlBERT) and generative models (MahaGPT) to outperform multilingual alternatives on Marathi tasks.
  • Enable end-to-end NLP pipelines through released models accessible via Hugging Face and future pip package integration.

Proposed method

  • Constructed MahaCorpus, a 289M-token monolingual Marathi corpus (752M total with external sources), for unsupervised pre-training.
  • Fine-tuned multilingual BERT variants (base-BERT, RoBERTa, ALBERT) on the MahaCorpus to create MahaBERT, MahaRoBERTa, and MahaAlBERT models using masked language modeling (MLM).
  • Trained MahaGPT, a GPT-2 style causal language model, on the full Marathi corpus for autocompletion and text generation tasks.
  • Generated MahaFT, fastText word embeddings trained on the Marathi corpus to improve out-of-vocabulary handling for morphologically rich language.
  • Curated and manually annotated MahaSent (12,114 tweets), MahaNER (25,000 sentences), and MahaHate (25,000 tweets) datasets for sentiment, NER, and hate speech classification.
  • Fine-tuned BERT and RoBERTa models on each dataset and released them on Hugging Face Hub for direct inference and fine-tuning.

Experimental results

Research questions

  • RQ1Can a large-scale, monolingual Marathi corpus significantly improve performance on downstream NLP tasks compared to multilingual pre-training?
  • RQ2Can dedicated, task-specific datasets and fine-tuned models outperform generic benchmarks in real-world Marathi NLP applications?
  • RQ3How effective are monolingual BERT variants (MahaBERT, MahaRoBERTa, MahaAlBERT) compared to multilingual models like multilingual-BERT or XLM-R for Marathi NLP tasks?
  • RQ4To what extent can MahaGPT and MahaFT enhance sequence modeling and word representation for low-resource Marathi NLP?
  • RQ5Can the release of standardized, production-ready datasets and models accelerate Marathi NLP research and deployment?

Key findings

  • The MahaBERT models outperform multilingual BERT and XLM-R on Marathi downstream tasks, demonstrating the advantage of monolingual pre-training.
  • MahaCorpus, with 289M tokens (752M total), provides a robust foundation for unsupervised and supervised pre-training in Marathi.
  • MahaSent, MahaNER, and MahaHate are the first large-scale, gold-standard datasets for sentiment analysis, named entity recognition, and hate speech detection in Marathi.
  • Fine-tuned BERT models for MahaSent, MahaNER, and MahaHate achieve state-of-the-art performance on their respective tasks, with public access via Hugging Face.
  • MahaGPT enables next-token prediction and text generation in Marathi, marking the first such generative model for the language.
  • MahaFT word embeddings show improved performance over existing Marathi word vectors, especially for morphologically complex words.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.