get topic info
Browse files
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_
|