Commit 65628391 authored by Kathryn Elliott's avatar Kathryn Elliott

Commented out argv command line parsing it's been replaced by argparse.

parent 19f7f01a
......@@ -45,11 +45,11 @@ extra_non_stopwords = ['to', 'go', 'not']
def load_data(dataset_file):
return pandas.read_json(dataset_file)
if (len(sys.argv) < 2):
print("usage: " + sys.argv[0] + " <datafile>")
sys.exit()
#if (len(sys.argv) < 2):
# print("usage: " + sys.argv[0] + " <datafile>")
# sys.exit()
file = sys.argv[1]
#file = sys.argv[1]
topic_model = TopicModel(load_data(file), min_topic_count=5, max_topic_count=20, extra_stopwords=extra_stopwords, extra_non_stopwords=extra_non_stopwords)
......
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