Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-05T17:39:19.027Z Has data issue: false hasContentIssue false

A clustering framework for lexical normalization of Roman Urdu

Published online by Cambridge University Press:  10 June 2020

Abdul Rafae Khan*
Affiliation:
Stevens Institute of Technology, Hoboken, NJ 07030, USA The Graduate Center, Computer Science Department, City University of New York, 365 5th Ave, New York, NY 10016, USA
Asim Karim
Affiliation:
Lahore University of Management Sciences, D.H.A, Lahore Cantt., 54792 Lahore, Pakistan
Hassan Sajjad
Affiliation:
Qatar Computing Research Institute, Hamad Bin Khalifa University, Doha, Qatar
Faisal Kamiran
Affiliation:
Information Technology University, Arfa Software Technology Park, Ferozepur Road, Lahore, Pakistan
Jia Xu
Affiliation:
Stevens Institute of Technology, Hoboken, NJ 07030, USA The Graduate Center, Computer Science Department, City University of New York, 365 5th Ave, New York, NY 10016, USA
*
*Corresponding author. E-mail: rafae015@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Roman Urdu is an informal form of the Urdu language written in Roman script, which is widely used in South Asia for online textual content. It lacks standard spelling and hence poses several normalization challenges during automatic language processing. In this article, we present a feature-based clustering framework for the lexical normalization of Roman Urdu corpora, which includes a phonetic algorithm UrduPhone, a string matching component, a feature-based similarity function, and a clustering algorithm Lex-Var. UrduPhone encodes Roman Urdu strings to their pronunciation-based representations. The string matching component handles character-level variations that occur when writing Urdu using Roman script. The similarity function incorporates various phonetic-based, string-based, and contextual features of words. The Lex-Var algorithm is a variant of the k-medoids clustering algorithm that groups lexical variations of words. It contains a similarity threshold to balance the number of clusters and their maximum similarity. The framework allows feature learning and optimization in addition to the use of predefined features and weights. We evaluate our framework extensively on four real-world datasets and show an F-measure gain of up to 15% from baseline methods. We also demonstrate the superiority of UrduPhone and Lex-Var in comparison to respective alternate algorithms in our clustering framework for the lexical normalization of Roman Urdu.

Information

Type
Article
Copyright
© The Author(s), 2020. Published by Cambridge University Press
Figure 0

Figure 1. The lexicon can be varied due to informal writing, non-unified definition of transliteration, phonetic mapping, etc.

Figure 1

Algorithm 1 Lex-Var

Figure 2

Figure 2. Flow diagram for Lex-Var.

Figure 3

Table 1. UrduPhone versus Soundex encodings

Figure 4

Table 2. UrduPhone homophone mappings in Roman Urdu

Figure 5

Algorithm 2 UrduPhone

Figure 6

Algorithm 3 Similarity measure with weighted feature combination

Figure 7

Table 3. Datasets and gold standard database statistics

Figure 8

Table 4. Details of experiments’ settings

Figure 9

Figure 3. Performance results for experiments in Table 4. (a) SMS (small) dataset. (b) SMS (large) dataset. (c) CFMP dataset. (d) Web dataset.

Figure 10

Table 5. Comparison of UrduPhone with other algorithms on the SMS (small) dataset. Single clusters are clusters with one word only. Actual clusters = 7589

Figure 11

Table 6. Experiments using UrduPhone, learning rules from Urdu-Roman Urdu transliteration corpus

Figure 12

Figure 4. Effect of varying UrduPhone encoding length on SMS (small) dataset (Exp 5).

Figure 13

Table 7. Varying edit distance cost for SMS (small) dataset. Learning character pair alignment probabilities

Figure 14

Table 8. Performance (F-measure) with two different context sizes. Details of the experiments are given in Table 4

Figure 15

Table 9. Performance with different weights for features (Exp. 5 on SMS (small) dataset). $\alpha^P$ = weight of phonetic feature, $\alpha^S$ = weight of string feature, $\alpha^{C_1}$ = weight of context using word ID, $\alpha^{C_2}$ = weight of context using UrduPhone ID

Figure 16

Figure 5. Effect of varying context size on SMS (small) dataset (Exp. 5).

Figure 17

Algorithm 4 Hierarchical Lex-Var

Figure 18

Figure 6. Effect of varying threshold t on SMS (small) dataset (Exp. 5).

Figure 19

Algorithm 5 2-skip-1-gram

Figure 20

Table 10. Performance of Hierarchical Lex-Var on SMS (small) dataset

Figure 21

Table 11. Performance of other clustering methods and variations in our framework on SMS (small) dataset

Figure 22

Table 12. Performance of Lex-Var on English dataset. We used Soundex and UrduPhone encodings as phonetic features