|
|
|
@ -29,6 +29,7 @@ def process_chunk(shared_chunks,word_count):
|
|
|
|
|
print(e)
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@timing_decorator
|
|
|
|
|
def main():
|
|
|
|
|
# 创建一个Manager实例
|
|
|
|
@ -56,5 +57,6 @@ def main():
|
|
|
|
|
word_freqs = Counter(word_count).most_common(10)
|
|
|
|
|
print_word_freqs(word_freqs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
main()
|
|
|
|
|
main()
|