wissamantoun commited on
Commit
081e4de
·
1 Parent(s): d44f5d8
Files changed (1) hide show
  1. backend/services.py +1 -1
backend/services.py CHANGED
@@ -248,7 +248,7 @@ class SentimentAnalyzer:
248
 
249
  prep_texts = [prep.preprocess(x) for x in texts]
250
  if model_name == "sa_sarcasm":
251
- sarcasm_label, _ = self.get_preds_from_sarcasm(texts, "sar_trial10")
252
  sarcastic_map = {"Not_Sarcastic": "غير ساخر", "Sarcastic": "ساخر"}
253
  labeled_prep_texts = []
254
  for t, l in zip(prep_texts, sarcasm_label):
 
248
 
249
  prep_texts = [prep.preprocess(x) for x in texts]
250
  if model_name == "sa_sarcasm":
251
+ sarcasm_label, _ = self.get_preds_from_sarcasm(texts)
252
  sarcastic_map = {"Not_Sarcastic": "غير ساخر", "Sarcastic": "ساخر"}
253
  labeled_prep_texts = []
254
  for t, l in zip(prep_texts, sarcasm_label):