HusseinBashir commited on
Commit
022167b
·
verified ·
1 Parent(s): a3f236e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -68,6 +68,10 @@ def number_to_words(number):
68
  return str(number)
69
 
70
  def normalize_text(text):
 
 
 
 
71
  text = re.sub(r'(\d{1,3})(,\d{3})+', lambda m: m.group(0).replace(",", ""), text)
72
  text = re.sub(r'\.\d+', '', text)
73
  def replace_num(match):
 
68
  return str(number)
69
 
70
  def normalize_text(text):
71
+ # Bedel ereyga Zamzam dhammaan noocyadiisa
72
+ text = re.sub(r'\b[Zz][Aa][Mm][Zz][Aa][Mm]\b', 'samsam', text)
73
+
74
+ # Tirtir tirooyinka ay ku jiraan koma
75
  text = re.sub(r'(\d{1,3})(,\d{3})+', lambda m: m.group(0).replace(",", ""), text)
76
  text = re.sub(r'\.\d+', '', text)
77
  def replace_num(match):