debug
Browse files
app.py
CHANGED
|
@@ -475,6 +475,7 @@ def base_bertopic(df):
|
|
| 475 |
try:
|
| 476 |
print(compute_coherence_value_bertopic(base_topic_model))
|
| 477 |
except:
|
|
|
|
| 478 |
print(base_topic_model.get_topic_info())
|
| 479 |
print('Unable to generate meaningful topics (Base BERTopic model)')
|
| 480 |
|
|
@@ -491,6 +492,7 @@ def optimized_bertopic(df):
|
|
| 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 |
|
|
|
|
| 475 |
try:
|
| 476 |
print(compute_coherence_value_bertopic(base_topic_model))
|
| 477 |
except:
|
| 478 |
+
print('huh')
|
| 479 |
print(base_topic_model.get_topic_info())
|
| 480 |
print('Unable to generate meaningful topics (Base BERTopic model)')
|
| 481 |
|
|
|
|
| 492 |
try:
|
| 493 |
print(compute_coherence_value_bertopic(optimized_topic_model))
|
| 494 |
except:
|
| 495 |
+
print('huh optimized')
|
| 496 |
print(optimized_topic_model.get_topic_info())
|
| 497 |
print('Unable to generate meaningful topics, base BERTopic model if possible')
|
| 498 |
|