Commit 9a829cf2 authored by Kathryn Elliott's avatar Kathryn Elliott

Improving clarity: changed `tm` to `topic_model`

parent 741e2618
......@@ -19,18 +19,18 @@ if (len(sys.argv) < 2):
file = sys.argv[1]
tm = TopicModel(load_data(file), min_topic_count=8, max_topic_count=20, extra_stopwords=extra_stopwords)
topic_model = TopicModel(load_data(file), min_topic_count=8, max_topic_count=20, extra_stopwords=extra_stopwords)
tm.pre_process_corpus()
tm.run_lda()
topic_model.pre_process_corpus()
topic_model.run_lda()
print("")
print("")
print("")
(n, model) = tm.find_maximally_coherent_model()
(n, model) = topic_model.find_maximally_coherent_model()
print("########################################")
print("################ " + str(n) + " ################")
print("########################################")
tm.print_topics(n)
topic_model.print_topics(n)
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