More cleanups on #09
This commit is contained in:
@@ -12,8 +12,8 @@ class TFTheOne:
|
|||||||
result = func(self._value)
|
result = func(self._value)
|
||||||
return TFTheOne(result)
|
return TFTheOne(result)
|
||||||
|
|
||||||
def printm(monad):
|
def printme(self):
|
||||||
print monad._value,
|
print self._value,
|
||||||
|
|
||||||
#
|
#
|
||||||
# The functions
|
# The functions
|
||||||
@@ -61,5 +61,5 @@ def top25_freqs(word_freqs):
|
|||||||
#
|
#
|
||||||
# The main function
|
# The main function
|
||||||
#
|
#
|
||||||
printm(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))
|
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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user