Skip to main content
QUICK REVIEW

[Paper Review] Normalization of Transliterated Words in Code-Mixed Data Using Seq2Seq Model & Levenshtein Distance

Soumil Mandal, Karthick Nanmaran|arXiv (Cornell University)|Jan 1, 2018
Natural Language Processing TechniquesComputer Science18 references7 citations
TL;DR

This paper proposes a two-stage seq2seq model combined with Levenshtein distance for normalizing phonetically transliterated Bengali-English code-mixed words into their standardized ITRANS forms. The first stage uses an LSTM-based sequence-to-sequence model to perform initial phonetic normalization, followed by a Levenshtein distance-based matching module against a curated ITRANS lexicon; the system achieves 90.27% accuracy on test data, significantly improving downstream sentiment analysis by 1.5%.

ABSTRACT

Building tools for code-mixed data is rapidly gaining popularity in the NLP research community as such data is exponentially rising on social media.Working with code-mixed data contains several challenges, especially due to grammatical inconsistencies and spelling variations in addition to all the previous known challenges for social media scenarios.In this article, we present a novel architecture focusing on normalizing phonetic typing variations, which is commonly seen in code-mixed data.One of the main features of our architecture is that in addition to normalizing, it can also be utilized for back-transliteration and word identification in some cases.Our model achieved an accuracy of 90.27% on the test data.

Motivation & Objective

  • To address the challenge of phonetic spelling variations in code-mixed Bengali-English social media text, where words are often transliterated inconsistently using Roman script.
  • To develop a normalization system that maps non-standard transliterations to their canonical ITRANS forms, enabling better semantic understanding and downstream NLP tasks.
  • To create a reusable framework that supports not only normalization but also back-transliteration and word identification for use with native-script tools.
  • To improve the performance of existing NLP systems, such as sentiment analysis, by applying the normalization module to noisy, code-mixed data.

Proposed method

  • A two-stage architecture is employed: first, a character-level seq2seq model with LSTM encoders and decoders normalizes input transliterations toward standard forms.
  • The seq2seq model is trained on a parallel lexicon (PL) of 6,000 entries pairing phonetically varied transliterations with their ITRANS-standard forms.
  • The second stage uses Levenshtein distance to match the output of the first module against a larger ITRANS dictionary (BN TRANS) of 21,850 entries to find the closest match.
  • A modified Levenshtein distance is applied where certain phonetic substitutions (e.g., 'a'/'o', 'b'/'v') are treated as equivalent by replacing them with special symbols, improving matching robustness.
  • Rule-based preprocessing is applied before model inference: digits are replaced by their Bengali words (e.g., '1' → 'ek'), and character elongations (e.g., 'baaaad') are truncated to two characters.
  • The system is evaluated both at the word level using test data and at the task level using a sentiment analysis pipeline from prior work.

Experimental results

Research questions

  • RQ1Can a seq2seq model effectively learn to normalize phonetically inconsistent transliterations of Bengali-English code-mixed text into standardized ITRANS forms?
  • RQ2How does combining a neural normalization module with Levenshtein distance matching improve accuracy compared to direct string matching?
  • RQ3To what extent do phonetic substitutions (e.g., 'a' vs 'o', 'b' vs 'v') affect normalization performance, and can modeling them as equivalent improve results?
  • RQ4Does normalization significantly improve the performance of downstream NLP tasks like sentiment analysis on code-mixed data?
  • RQ5How do out-of-vocabulary words and model errors impact overall system accuracy, and can these be mitigated?

Key findings

  • The proposed system achieved a word-level normalization accuracy of 90.27% on test data, significantly outperforming baseline setups without the seq2seq module.
  • The inclusion of the seq2seq normalization stage improved accuracy by 30.94 percentage points compared to direct Levenshtein matching (from 58.78% to 89.72% in the best non-modified setup).
  • Using a modified Levenshtein distance that treats certain phonetic pairs as equivalent (e.g., 'a'/'o', 'b'/'v') further improved accuracy by 0.55 percentage points compared to standard Levenshtein distance.
  • The system improved the F1-score of a sentiment analysis model by 1.41 points (from 81.20 to 82.61), demonstrating tangible downstream benefits.
  • 92% of normalization errors were due to out-of-vocabulary words not present in the BN TRANS lexicon, indicating that vocabulary coverage is a key bottleneck.
  • The mean Levenshtein distance between erroneous outputs and the correct ITRANS forms was 1.89, suggesting that the seq2seq model’s predictions were often close to the target, and that better lexicon coverage would yield substantial gains.

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.