Minor
This commit is contained in:
@@ -34,7 +34,6 @@ def split_words(data_str):
|
|||||||
words = _remove_stop_words(_scan(data_str))
|
words = _remove_stop_words(_scan(data_str))
|
||||||
for w in words:
|
for w in words:
|
||||||
result.append((w, 1))
|
result.append((w, 1))
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def count_words(pairs_list_1, pairs_list_2):
|
def count_words(pairs_list_1, pairs_list_2):
|
||||||
@@ -50,7 +49,6 @@ def count_words(pairs_list_1, pairs_list_2):
|
|||||||
mapping[p[0]] += p[1]
|
mapping[p[0]] += p[1]
|
||||||
else:
|
else:
|
||||||
mapping[p[0]] = 1
|
mapping[p[0]] = 1
|
||||||
|
|
||||||
return mapping.items()
|
return mapping.items()
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user