Commit ba9fd4b1 authored by Kathryn Elliott's avatar Kathryn Elliott

Remove unused code.

parent 5966f2fc
......@@ -236,14 +236,6 @@ class TopicModel:
yield (n, self._max_topic_count)
def _suppress_logging(self, suppress=True):
self._logging.setLevel(logging.WARN)
def _reenable_logging(self):
self._logging.setLevel(logging.WARN)
def _build_models(self, quiet=True):
models = {}
......@@ -431,13 +423,3 @@ class TopicPersistance:
yield csvfile
finally:
csvfile.close()
def export_topic_visualisation_data(self, topic_id):
model = self._models[topic_id]
html_filename = TOPICS_VISUALISATION_PREFIX + "." + str(topic_id) + ".html"
logging.info("Exporting html visualisation for topic {0} to: {1}".format(topic_id, html_filename))
vis = pyLDAvis.gensim.prepare(model, self._bow, self._dictionary)
pyLDAvis.save_html(vis, html_filename)
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