Commit 5966f2fc authored by Kathryn Elliott's avatar Kathryn Elliott

Instead of calculating the max coherency score print them all.

parent 795a92d2
...@@ -27,22 +27,9 @@ args = vars(parser.parse_args()) ...@@ -27,22 +27,9 @@ args = vars(parser.parse_args())
topic_model = TopicModel(args.pop('filename'), **args) topic_model = TopicModel(args.pop('filename'), **args)
topic_model.run_lda() topic_model.run_lda()
print("")
print("")
print("")
(n, model) = topic_model.find_maximally_coherent_model()
print("########################################")
print("################ " + str(n) + " ################")
print("########################################")
topic_model.print_topics(n)
print("")
print("")
topic_model.calculate_coherence_models() topic_model.calculate_coherence_models()
topic_model.export_all_topics_per_documents() topic_model.export_all_topics_per_documents()
topic_model.export_all_topic_visualisation_data() topic_model.export_all_topic_visualisation_data()
topic_model.print_topics(compact=False)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment