Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
removed old references to utils.py from run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Youngblood committed Oct 9, 2015
1 parent a18a0bb commit 3f938c7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions topik/run.py
Expand Up @@ -11,7 +11,6 @@
from topik.readers import read_input
import topik.models
from topik.viz import plot_lda_vis, Termite
from topik.utils import generate_csv_output_file


logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s',
Expand Down Expand Up @@ -74,11 +73,7 @@ def run_model(data_source, source_type="auto", year_field=None, start_year=None,
termite = Termite(model.termite_data(n_topics), "Termite Plot")
termite.plot(os.path.join(dir_path, 'termite.html'))

if output_file:
filtered_documents = raw_data.get_data_by_year(start_year, stop_year, year_field)
generate_csv_output_file(filtered_documents, raw_data, processed_data, lda.model)

if ldavis:
plot_lda_vis(model.to_py_lda_vis)
plot_lda_vis(model.to_py_lda_vis())


0 comments on commit 3f938c7

Please sign in to comment.