Make the main code more readable

This commit is contained in:
Crista Lopes
2014-03-19 15:39:37 -07:00
parent d8721e123e
commit 2f483b1742

View File

@@ -61,5 +61,14 @@ def top25_freqs(word_freqs):
# #
# The main function # The main function
# #
TFTheOne(sys.argv[1]).bind(read_file).bind(filter_chars).bind(normalize).bind(scan).bind(remove_stop_words).bind(frequencies).bind(sort).bind(top25_freqs).printme() TFTheOne(sys.argv[1])\
.bind(read_file)\
.bind(filter_chars)\
.bind(normalize)\
.bind(scan)\
.bind(remove_stop_words)\
.bind(frequencies)\
.bind(sort)\
.bind(top25_freqs)\
.printme()