You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
406 B
15 lines
406 B
#!/usr/bin/env python3 |
|
|
|
import sys |
|
import bootstrap |
|
import count_words |
|
|
|
if __name__ == "__main__": |
|
occur = count_words.filter_unlikely(count_words.process(bootstrap.tweets)) |
|
ranked = count_words.ranked_list(occur) |
|
|
|
out_file = "trumprank.txt" |
|
if len(sys.argv) >= 2: |
|
out_file = sys.argv[1] |
|
print("Writing out to {}...".format(out_file)) |
|
count_words.writeout(ranked, out_file)
|
|
|