MarMont commited on
Commit
4433c46
·
1 Parent(s): f2b9e9f

get topic info

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -491,6 +491,7 @@ def optimized_bertopic(df):
491
  try:
492
  print(compute_coherence_value_bertopic(optimized_topic_model))
493
  except:
 
494
  print('Unable to generate meaningful topics, base BERTopic model if possible')
495
 
496
  rep_docs = optimized_topic_model.representative_docs_
 
491
  try:
492
  print(compute_coherence_value_bertopic(optimized_topic_model))
493
  except:
494
+ print(optimized_topic_model.get_topic_info())
495
  print('Unable to generate meaningful topics, base BERTopic model if possible')
496
 
497
  rep_docs = optimized_topic_model.representative_docs_