[Paper Review] Word Level Language Identification in English Telugu Code Mixed Data
This paper proposes a Conditional Random Field (CRF)-based model for word-level language identification in English-Telugu code-mixed text, leveraging linguistic features such as word shape, context, POS tags, and character n-grams. The CRF model achieves an F1-score of 0.91, outperforming Naïve Bayes, Random Forest, and HMM baselines, marking a significant contribution to low-resource code-mixed NLP in Indian languages.
In a multilingual or sociolingual configuration Intra-sentential Code Switching (ICS) or Code Mixing (CM) is frequently observed nowadays. In the world, most of the people know more than one language. CM usage is especially apparent in social media platforms. Moreover, ICS is particularly significant in the context of technology, health, and law where conveying the upcoming developments are difficult in one's native language. In applications like dialog systems, machine translation, semantic parsing, shallow parsing, etc. CM and Code Switching pose serious challenges. To do any further advancement in code-mixed data, the necessary step is Language Identification. In this paper, we present a study of various models - Nave Bayes Classifier, Random Forest Classifier, Conditional Random Field (CRF), and Hidden Markov Model (HMM) for Language Identification in English - Telugu Code Mixed Data. Considering the paucity of resources in code mixed languages, we proposed the CRF model and HMM model for word level language identification. Our best performing system is CRF-based with an f1-score of 0.91.
Motivation & Objective
- To address the challenge of word-level language identification in low-resource, English-Telugu code-mixed text, especially in social media and multilingual communication contexts.
- To develop a robust language identification system that handles morphological blending, transliteration variations, and informal writing styles common in code-mixed data.
- To evaluate and compare multiple sequence labeling models—Naïve Bayes, Random Forest, HMM, and CRF—for their effectiveness in identifying the source language of individual words.
- To explore feature engineering strategies that incorporate morphological, orthographic, and contextual cues for improved language tag prediction.
- To provide a high-performing, open-source solution for downstream NLP tasks in code-mixed Indian languages.
Proposed method
- The CRF model is trained using a feature set including current word, its POS tag, neighboring words and their POS tags, prefix/suffix, word length, numeric/uppercase/special character presence, and forward/backward character n-grams (unigram, bigram, trigram).
- The model uses a first-order Markov assumption to capture local context, with features like 'previous word language tag' and 'current word language label' to improve sequence labeling.
- Feature templates are designed to handle morphological code-mixing, such as 'classlo' (English + Telugu plural morpheme) and clitics like 'supere' (English root + Telugu clitic).
- The system applies default 'UNIV' (universal) tagging to non-word tokens like URLs, email addresses, and emoticons to maintain robustness.
- Experiments use a 3-fold cross-validation setup on a corpus of 23,635 training and 5,868 test words, with models implemented using scikit-learn, NLTK, and python-crfsuite.
- Baseline models include Naïve Bayes, Random Forest, and HMM, with performance compared via F1-score, precision, and recall.
Experimental results
Research questions
- RQ1What is the optimal sequence labeling model for word-level language identification in English-Telugu code-mixed text?
- RQ2How do linguistic features such as character n-grams, POS tags, and word shape contribute to language identification accuracy?
- RQ3To what extent do morphological blending and informal spelling variations hinder language identification in code-mixed data?
- RQ4Can CRF-based models outperform traditional classifiers like Naïve Bayes and Random Forest in low-resource code-mixed settings?
- RQ5How does the inclusion of contextual features (e.g., previous word language tag) improve prediction performance?
Key findings
- The CRF-based model achieved the highest F1-score of 0.91, with an accuracy of 91.2897%, significantly outperforming all baseline models.
- The Telugu language tag achieved a precision of 0.84, recall of 0.81, and F1-score of 0.87, indicating strong performance on the native language.
- English word identification achieved a high F1-score of 0.88, with precision 0.88 and recall 0.87, reflecting reliable detection of English lexical items.
- The NE (Named Entity) tag achieved the highest F1-score of 0.95, suggesting strong performance on proper nouns and named entities.
- The Universal (UNIV) tag, used for non-lexical tokens like URLs and emoticons, had a low F1-score of 0.54, indicating a need for improved handling of such tokens.
- The HMM model achieved 85.15% accuracy, which was lower than CRF but higher than Naïve Bayes (77.37%) and Random Forest (77.34%), highlighting the importance of sequence modeling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.