Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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", "
|
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 |
}
|