Commit f5780e4b authored by Kathryn Elliott's avatar Kathryn Elliott

Logging

parent 7553ff45
......@@ -298,11 +298,11 @@ class TopicModel:
print(topic)
else:
for n in range(topic_id):
logging.info("############## {0} ({1}) ##############".format(topic_id, n))
logging.info("{:20} {}".format(u'term', u'frequency') + u'\n')
self._logging.info("############## {0} ({1}) ##############".format(topic_id, n))
self._logging.info("{:20} {}".format(u'term', u'frequency') + u'\n')
for term, frequency in self._models[topic_id].show_topic(n - 1, topn):
logging.info("{:20} {:.3f}".format(term, round(frequency, 3)))
self._logging.info("{:20} {:.3f}".format(term, round(frequency, 3)))
logging.info("")
......
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