Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def classify_topic_by_keywords(text, language='ar'):
|
|
75 |
# Arabic keywords for each topic
|
76 |
arabic_keywords = {
|
77 |
"Customer Service": ["خدمة", "استفسار", "مساعدة", "دعم", "سؤال", "استفسار"],
|
78 |
-
"
|
79 |
"Billing Issue": ["فاتورة", "دفع", "مشكلة", "خطأ", "مبلغ"],
|
80 |
"Other": ["شيء آخر", "غير ذلك", "أخرى"]
|
81 |
}
|
@@ -83,7 +83,7 @@ def classify_topic_by_keywords(text, language='ar'):
|
|
83 |
# English keywords for each topic
|
84 |
english_keywords = {
|
85 |
"Customer Service": ["service", "inquiry", "help", "support", "question", "assistance"],
|
86 |
-
"
|
87 |
"Billing Issue": ["bill", "payment", "problem", "error", "amount"],
|
88 |
"Other": ["other", "none of the above", "something else"]
|
89 |
}
|
|
|
75 |
# Arabic keywords for each topic
|
76 |
arabic_keywords = {
|
77 |
"Customer Service": ["خدمة", "استفسار", "مساعدة", "دعم", "سؤال", "استفسار"],
|
78 |
+
"résiliation Service": ["نوقف", "تجديد", "خصم", "عرض", "نحي"],
|
79 |
"Billing Issue": ["فاتورة", "دفع", "مشكلة", "خطأ", "مبلغ"],
|
80 |
"Other": ["شيء آخر", "غير ذلك", "أخرى"]
|
81 |
}
|
|
|
83 |
# English keywords for each topic
|
84 |
english_keywords = {
|
85 |
"Customer Service": ["service", "inquiry", "help", "support", "question", "assistance"],
|
86 |
+
"résiliation Service": ["retain", "cut", "discount", "stopped", "promotion","stop"],
|
87 |
"Billing Issue": ["bill", "payment", "problem", "error", "amount"],
|
88 |
"Other": ["other", "none of the above", "something else"]
|
89 |
}
|