Mohssinibra commited on
Commit
abbf73c
·
verified ·
1 Parent(s): 2ec49d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ def classify_topic_by_keywords(text, language='ar'):
67
  # Arabic keywords for each topic
68
  arabic_keywords = {
69
  "Customer Service": ["خدمة", "استفسار", "مساعدة", "دعم", "سؤال", "استفسار"],
70
- "Retention Service": ["احتفاظ", "تجديد", "خصم", "عرض", "نحي"],
71
  "Billing Issue": ["فاتورة", "دفع", "مشكلة", "خطأ", "مبلغ"],
72
  "Other": ["شيء آخر", "غير ذلك", "أخرى"]
73
  }
@@ -75,7 +75,7 @@ def classify_topic_by_keywords(text, language='ar'):
75
  # English keywords for each topic
76
  english_keywords = {
77
  "Customer Service": ["service", "inquiry", "help", "support", "question", "assistance"],
78
- "Retention Service": ["retain", "cut", "discount", "offer", "promotion","stop"],
79
  "Billing Issue": ["bill", "payment", "problem", "error", "amount"],
80
  "Other": ["other", "none of the above", "something else"]
81
  }
 
67
  # Arabic keywords for each topic
68
  arabic_keywords = {
69
  "Customer Service": ["خدمة", "استفسار", "مساعدة", "دعم", "سؤال", "استفسار"],
70
+ "Retention Service": ["نوقف", "تجديد", "خصم", "عرض", "نحي"],
71
  "Billing Issue": ["فاتورة", "دفع", "مشكلة", "خطأ", "مبلغ"],
72
  "Other": ["شيء آخر", "غير ذلك", "أخرى"]
73
  }
 
75
  # English keywords for each topic
76
  english_keywords = {
77
  "Customer Service": ["service", "inquiry", "help", "support", "question", "assistance"],
78
+ "Retention Service": ["retain", "cut", "discount", "stopped", "promotion","stop"],
79
  "Billing Issue": ["bill", "payment", "problem", "error", "amount"],
80
  "Other": ["other", "none of the above", "something else"]
81
  }