Indic languages, written in Abugida scripts like Bangla and Devanagari, present unique challenges for digital text processing. Unlike the linear nature of Latin scripts, Indic scripts utilize complex graphemes—orthographic syllables where consonants and vowel diacritics are visually stacked or rearranged. While Unicode uses "connectors" like the Hasant or Virama to represent these structures, inconsistencies in encoding—arising from different keyboards, legacy symbols, and "broken" diacritic sequences—create a significant gap between memory storage and visual rendering. This paper introduces a high-performance Unicode normalizer and an ultra-fast grapheme parser to address these structural inconsistencies, improving the robustness of downstream NLP tasks.
Methodology
The authors propose a two-pronged solution to rectify malformed Indic text:
- Unicode Normalizer: This tool targets seven prevalent error types, including legacy symbol mapping, broken nukta/diacritic resolution, and invalid connector handling. By applying language-specific rules, it standardizes text that may appear correct to a human but is "broken" at the byte level.
- Indic Grapheme Parser: A novel algorithm designed to deconstruct words into visually distinct orthographic syllables by identifying connectors and grouping consonant clusters with their respective diacritics.
Evaluation and Datasets
The tools were evaluated using the OSCAR corpus (a massive multilingual dataset) to quantify the prevalence of unnormalized text across seven languages: Bangla, Devanagari, Gujarati, Odiya, Tamil, Punjabi, and Malayalam. Performance was further tested on a Bangla Named Entity Recognition (NER) dataset (66,194 sentences) and a Hindi Sentiment Analysis (HSA) dataset (4,705 sentences).
Key Results
The study revealed that a significant portion of web-based Indic text is malformed. For instance, over 15% of Malayalam words and 31.5% of Punjabi words in the OSCAR corpus required normalization.
In terms of efficiency, the proposed grapheme parser demonstrates superior performance compared to existing tools like the IndicNLP syllabifier, operating at speeds significantly faster across various word counts.
In noise-injection experiments simulating real-world "messy" internet text, the normalizer acted as a defense mechanism. A Bangla NER model maintained an F1-score of 0.89 when using the proposed normalizer, whereas models using standard tools saw performance drop as low as 0.75 under similar conditions.
Conclusion and Future Work
While effective, the current normalizer is restricted to word-level processing and carries some computational overhead due to complex heuristic-based operations. Future work aims to optimize these operations using matrix-based calculations and Just-In-Time (JIT) compilation, as well as expanding the framework to support more Indic scripts beyond the initial seven.
Summary updated