From 2f483b174271154fbac2c465be0bb84e68f2f81a Mon Sep 17 00:00:00 2001 From: Crista Lopes Date: Wed, 19 Mar 2014 15:39:37 -0700 Subject: [PATCH] Make the main code more readable --- 09-the-one/tf-09.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/09-the-one/tf-09.py b/09-the-one/tf-09.py index 2356985..5b8cf7c 100755 --- a/09-the-one/tf-09.py +++ b/09-the-one/tf-09.py @@ -61,5 +61,14 @@ def top25_freqs(word_freqs): # # 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()