kambris commited on
Commit
a8fd7c2
·
verified ·
1 Parent(s): 0826ce2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -228,11 +228,15 @@ def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, to
228
 
229
  topic_model_params = {
230
  "language": "arabic",
231
- "calculate_probabilities": True,
232
  "min_topic_size": 1,
233
- "n_gram_range": (1, 2),
234
  "top_n_words": 15,
235
  "verbose": True,
 
 
 
 
236
  }
237
  st.write(f"Total documents: {len(df)}")
238
  st.write(f"Topic strategy: {topic_strategy}")
 
228
 
229
  topic_model_params = {
230
  "language": "arabic",
231
+ "calculate_probabilities": False,
232
  "min_topic_size": 1,
233
+ "n_gram_range": (1, 1),
234
  "top_n_words": 15,
235
  "verbose": True,
236
+ "hdbscan_args": {
237
+ "min_cluster_size": 2,
238
+ "min_samples": 1,
239
+ "cluster_selection_epsilon": 0.1
240
  }
241
  st.write(f"Total documents: {len(df)}")
242
  st.write(f"Topic strategy: {topic_strategy}")