kambris commited on
Commit
643a16d
·
verified ·
1 Parent(s): 1e7baf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -83,6 +83,7 @@ def create_arabic_wordcloud(text, title):
83
  background_color='white',
84
  font_path=font_path,
85
  max_words=200
 
86
  ).generate(text)
87
 
88
  fig, ax = plt.subplots(figsize=(15, 8))
@@ -230,7 +231,7 @@ def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, to
230
 
231
  topic_model_params = {
232
  "language": "arabic",
233
- "calculate_probabilities": False,
234
  "min_topic_size": 5,
235
  "n_gram_range": (1, 1),
236
  "top_n_words": 15,
 
83
  background_color='white',
84
  font_path=font_path,
85
  max_words=200
86
+ stopwords=ARABIC_STOP_WORDS
87
  ).generate(text)
88
 
89
  fig, ax = plt.subplots(figsize=(15, 8))
 
231
 
232
  topic_model_params = {
233
  "language": "arabic",
234
+ "calculate_probabilities": True,
235
  "min_topic_size": 5,
236
  "n_gram_range": (1, 1),
237
  "top_n_words": 15,