AI4Bharat-IndicNLP Corpus: Monolingual Corpora and Word Embeddings for Indic Languages

Anoop Kunchukuttan, Divyanshu Kakwani, Satish Golla, Gokul N. C., Avik Bhattacharyya, Mitesh M. Khapra, Pratyush KumararXiv 2020

Modern Natural Language Processing (NLP) relies heavily on massive amounts of data. While English and other Western languages have benefited from gargantuan datasets, Indic languages—spoken by over a billion people—have historically faced a "data desert." The AI4Bharat-IndicNLP Corpus aims to change that by providing a massive, open-source foundation for Indian language research.

TL;DR

The authors introduce the IndicNLP corpus, a 2.7-billion-word general-domain dataset covering 10 major Indian languages. Alongside the corpus, they release high-quality pre-trained word embeddings, new evaluation benchmarks, and unsupervised morphological analyzers that consistently outperform existing publicly available resources.

What Problem Does This Paper Address?

Despite the huge population of Indian language speakers, these languages are "resource-poor" in the digital NLP world. Most existing corpora are either too small, domain-specific (like just Wikipedia), or of poor quality.

Furthermore, Indic languages are morphologically rich and diverse, spanning two major language families (Indo-Aryan and Dravidian). Standard word-level models often struggle with the sheer variety of word forms. To build effective tools for tasks like sentiment analysis, machine translation, or text classification, researchers need large-scale, diverse, and high-quality monolingual data.

Methods

The researchers built the corpus through a multi-step pipeline:

  1. Crawling: They used the Scrapy framework to crawl popular news websites and Wikipedia.
  2. Extraction & Filtering: Tools like BoilerPipe and BeautifulSoup were used to extract clean text from messy HTML, followed by filters for content length and script quality.
  3. Processing: They used the Indic NLP Library to handle language-specific challenges like canonicalizing Unicode representations (handling typing inconsistencies) and sentence splitting.
  4. Embedding Training: They trained 300-dimensional FastText embeddings. FastText was chosen specifically because it uses subword information (character n-grams), which is vital for capturing the meaning of complex, morphologically rich Indic words.
  5. Morphological Analysis: They trained unsupervised morphanalyzers using Morfessor 2.0 to demonstrate how large monolingual data can help decompose words into their constituent parts (morphemes).

Datasets

The core contribution is the IndicNLP Corpus, which contains statistics for 10 languages as shown below:

IndicNLP corpus statistics across 10 languages

The authors also introduced:

  • IndicNLP News Category Dataset: A new classification benchmark for 9 languages (pa, bn, or, gu, mr, kn, te, ml, ta) based on news topics like sports, business, and entertainment.
  • Evaluation Benchmarks: They utilized existing datasets like the IIIT-Hyderabad word similarity dataset, Facebook's Hindi analogy dataset, and various sentiment analysis corpora (IIT-Patna, ACTSA, etc.).

Key Insights and Ideas

  • News as a Goldmine: While Wikipedia is the standard for many languages, it is relatively small for Indic languages. The authors found that news websites provide a much larger and more diverse reflection of contemporary language use.
  • Subword Information is Non-Negotiable: For languages where a single root word can take dozens of forms, subword embeddings (FastText) are significantly more effective than word-level models like Word2Vec or GloVe.
  • Cross-Lingual Potential: By training high-quality monolingual embeddings, the authors showed they could improve Bilingual Lexicon Induction (BLI)—the ability to automatically map words from one language to another (e.g., English to Hindi) without a parallel dictionary.
  • Unsupervised Wins: Even without manually labeled data, the sheer scale of the corpus allows unsupervised tools to perform remarkably well at tasks like morphological analysis, which helps reduce data sparsity in downstream tasks like Machine Translation.

Key Results

The IndicNLP embeddings outperformed standard FastText baselines (trained on Wikipedia or CommonCrawl) across almost every metric.

  • Word Similarity & Analogy: The embeddings showed higher Pearson correlation with human judgments and better accuracy on analogy tasks. Word Similarity and Analogy Results
  • Text Classification: On the new News Category dataset, the IndicNLP embeddings achieved an average accuracy of 97.40%, consistently beating the baselines. Text classification accuracy on IndicNLP News category testset
  • Public Benchmarks: The trend continued on existing public datasets for sentiment and news classification, where IndicNLP embeddings provided a significant boost. Text classification accuracy on public datasets
Table 2: Word Similarity and Analogy Results
Text classification accuracy on IndicNLP News category testset
Table 5: Text classification accuracy on public datasets

Limitations and Future Work

While the corpus is a massive step forward, the authors note that some languages like Bengali still have relatively small collections (~100 million words) compared to their speaker population.

The current work focuses on static embeddings. The authors' roadmap includes:

  • Expanding the corpus to at least 1 billion words per language.
  • Building and releasing contextualized representations (like BERT and ELMo) specifically for Indic languages.
  • Creating more diverse benchmark datasets for tasks beyond classification, such as Named Entity Recognition (NER) and Question Answering (QA).

The resources are publicly available at https://github.com/ai4bharat-indicnlp/indicnlp_corpus.

Summary updated

BibTeX
@misc{kunchukuttan2020ai,
  author = {Anoop Kunchukuttan and Divyanshu Kakwani and Satish Golla and Gokul N. C. and Avik Bhattacharyya and Mitesh M. Khapra and Pratyush Kumar},
  title = {{AI4Bharat-IndicNLP Corpus: Monolingual Corpora and Word Embeddings for Indic Languages}},
  year = {2020},
  eprint = {2005.00085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.00085},
}
Figure