L3Cube-HingCorpus and HingBERT: A Code Mixed Hindi-English Dataset and BERT Language Models

Ravindra Nayak, Raviraj Joshi
4/18/2022
cs.CLcs.LG
benchmark-datasettransformer-attention

Official code: l3cube-pune/code-mixed-nlp (30 stars, last commit 2023-07-22).

Abstract

Code-switching occurs when more than one language is mixed in a given sentence or a conversation. This phenomenon is more prominent on social media platforms and its adoption is increasing over time.

Show full abstract

Therefore code-mixed NLP has been extensively studied in the literature. As pre-trained transformer-based architectures are gaining popularity, we observe that real code-mixing data are scarce to pre-train large language models. We present L3Cube-HingCorpus, the first large-scale real Hindi-English code mixed data in a Roman script. It consists of 52.93M sentences and 1.04B tokens, scraped from Twitter. We further present HingBERT, HingMBERT, HingRoBERTa, and HingGPT. The BERT models have been pre-trained on codemixed HingCorpus using masked language modelling objectives. We show the effectiveness of these BERT models on the subsequent downstream tasks like code-mixed sentiment analysis, POS tagging, NER, and LID from the GLUECoS benchmark. The HingGPT is a GPT2 based generative transformer model capable of generating full tweets. We also release L3Cube-HingLID Corpus, the largest code-mixed Hindi-English language identification(LID) dataset and HingBERT-LID, a production-quality LID model to facilitate capturing of more code-mixed data using the process outlined in this work. The dataset and models are available at https://github.com/l3cube-pune/code-mixed-nlp .

View on arXivView PDF

Code Implementations(1)

This repository is dedicated to development of code-mixed language resources.

302Mar 25, 20223 years ago

Similar Papers

Cite this paper

@article{nayak2022lcubehingcorpus,
  title  = {L3Cube-HingCorpus and HingBERT: A Code Mixed Hindi-English Dataset and BERT Language Models},
  author = {Ravindra Nayak and Raviraj Joshi},
  year   = {2022},
  eprint = {2204.08398},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08398}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.08398.svg)](https://codeofpaper.com/paper/2204.08398)

Discussion