Skip to main content
QUICK REVIEW

[Paper Review] Language Modeling for Code-Switched Data: Challenges and Approaches

Ganji Sreeram, Rohit Sinha|arXiv (Cornell University)|Nov 9, 2017
Natural Language Processing TechniquesComputer Science11 references5 citations
TL;DR

This paper proposes a factored recurrent neural network language model (RNN-LM) for Hindi-English code-switched (Hinglish) text by integrating part-of-speech (POS) tags and a novel code-switch factor (CS-factor) to improve perplexity. The CS-factor captures code-switching patterns independently of POS, yielding a 22.97 PPL on Hinglish test data—significantly outperforming baseline models and showing additive gains over POS features alone.

ABSTRACT

Lately, the problem of code-switching has gained a lot of attention and has emerged as an active area of research. In bilingual communities, the speakers commonly embed the words and phrases of a non-native language into the syntax of a native language in their day-to-day communications. The code-switching is a global phenomenon among multilingual communities, still very limited acoustic and linguistic resources are available as yet. For developing effective speech based applications, the ability of the existing language technologies to deal with the code-switched data can not be over emphasized. The code-switching is broadly classified into two modes: inter-sentential and intra-sentential code-switching. In this work, we have studied the intra-sentential problem in the context of code-switching language modeling task. The salient contributions of this paper includes: (i) the creation of Hindi-English code-switching text corpus by crawling a few blogging sites educating about the usage of the Internet (ii) the exploration of the parts-of-speech features towards more effective modeling of Hindi-English code-switched data by the monolingual language model (LM) trained on native (Hindi) language data, and (iii) the proposal of a novel textual factor referred to as the code-switch factor (CS-factor), which allows the LM to predict the code-switching instances. In the context of recognition of the code-switching data, the substantial reduction in the PPL is achieved with the use of POS factors and also the proposed CS-factor provides independent as well as additive gain in the PPL.

Motivation & Objective

  • To address the challenge of low-resource code-switched language modeling in Hindi-English (Hinglish) text, where foreign words lack contextual support.
  • To explore the effectiveness of part-of-speech (POS) features in improving monolingual Hindi RNN-LM performance on code-switched data.
  • To propose and evaluate a novel textual feature, the code-switch factor (CS-factor), to model code-switching patterns independently of word context.
  • To demonstrate that combining POS and CS-factors yields additive improvements in perplexity over baseline and factored models.

Proposed method

  • A Hindi-English code-switched text corpus was collected by crawling educational blogging sites to create a training dataset for Hinglish language modeling.
  • A monolingual Hindi RNN-LM was trained on both pure Hindi and mixed Hinglish data, with POS tags used as a factor to preserve syntactic context during code-switching.
  • A novel code-switch factor (CS-factor) was introduced to model the likelihood of switching between Hindi and English words based on linguistic and structural cues.
  • The RNN-LM was extended to a factored model using both POS and CS-factors, enabling joint prediction of word sequences and code-switching events.
  • Perplexity (PPL) was used as the evaluation metric on both Hinglish and pure Hindi test sets, with 3-fold cross-validation to ensure robustness.
  • The performance of the factored RNN-LM was compared against 5-gram LMs, standard RNN-LMs, and class-based RNN-LMs to validate the effectiveness of the proposed features.

Experimental results

Research questions

  • RQ1Can part-of-speech (POS) features improve the performance of a monolingual Hindi RNN-LM on Hindi-English code-switched text?
  • RQ2Does the proposed code-switch factor (CS-factor) provide independent and measurable gains in modeling code-switched language patterns?
  • RQ3How do the combined effects of POS and CS-factors compare to individual features in reducing perplexity on code-switched data?
  • RQ4To what extent does the inclusion of CS-factor outperform traditional language modeling approaches on low-resource code-switched data?

Key findings

  • The factored RNN-LM using only POS factors reduced the perplexity (PPL) on Hinglish test data from 89.67 (standard RNN-LM) to 39.03, demonstrating significant improvement.
  • The proposed CS-factor alone reduced PPL to 36.52 on Hinglish data, showing it is effective even without POS features.
  • The combination of POS and CS-factors achieved the lowest PPL of 22.97 on Hinglish test data, indicating additive gains from both features.
  • The factored RNN-LM with both features achieved a PPL of 38.89 on the Hinglish test set, outperforming the 5-gram LM (92.11) and standard RNN-LM (89.67).
  • The model trained on Hindi-English data with POS tags showed better generalization on Hinglish data than on pure Hindi data, due to better handling of out-of-vocabulary (OOV) English words.
  • The CS-factor was found to be simple to estimate yet highly effective, especially in cases of low-context code-switching where foreign words carry minimal syntactic information.

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.