(self, num)
normalization:
        num=1  normalize diacritics
        num=2  normalize initial hamza
        num=3  both 1&2
normalization:
        num=1  normalize diacritics
        num=2  normalize initial hamza
        num=3  both 1&2
normalization : num = 1 normalize diacritics num = 2 normalize initial hamza num = 3 both 1&2
def norm(self, num):
        """
        normalization:
        num=1  normalize diacritics
        num=2  normalize initial hamza
        num=3  both 1&2
        """
        self.k = num

        if self.k == 1:
            self.stm = self.re_short_vowels.sub('', self.stm)
            return self.stm
        elif self.k == 2:
            self.stm = self.re_intial_hamza.sub(r'\u0627', self.stm)
            return self.stm
        elif self.k == 3:
            self.stm = self.re_short_vowels.sub('', self.stm)
            self.stm = self.re_intial_hamza.sub(r'\u0627', self.stm)
            return self.stm
def norm ( self , num ) : self . k = num if self . k == 1 : self . stm = self . re_short_vowels . sub ( '' , self . stm ) return self . stm elif self . k == 2 : self . stm = self . re_intial_hamza . sub ( r'\u0627' , self . stm ) return self . stm elif self . k == 3 : self . stm = self . re_short_vowels . sub ( '' , self . stm ) self . stm = self . re_intial_hamza . sub ( r'\u0627' , self . stm ) return self . stm