More of the same

This commit is contained in:
Crista Lopes
2013-12-31 15:28:00 -08:00
parent 2aaef21d60
commit 5a98f6e999

View File

@@ -10,13 +10,13 @@ stop_words = [(), None]
non_stop_words = [(), lambda : \
map(lambda w : \
w if w not in stop_words[0] else '',\
all_words[0])]
all_words[0])]
unique_words = [(),lambda :
set([w for w in non_stop_words[0] if w!=''])]
counts = [(), lambda :
map(lambda w, word_list : word_list.count(w), \
unique_words[0], \
itertools.repeat(non_stop_words[0], \
map(lambda w, word_list : word_list.count(w), \
unique_words[0], \
itertools.repeat(non_stop_words[0], \
len(unique_words[0])))]
sorted_data = [(), lambda : sorted(zip(list(unique_words[0]), \
counts[0]), \