Skip to content

Data-Intensive-Computing Project: Word Count using MapReduce

Notifications You must be signed in to change notification settings

ssjjcao/EasyWordCount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Count Project Using MapReduce

Prerequisite

Download and unzip HanLP data to the directory src/main/resources.

Workflow

Given a file --Map-> (Split by line) for each line(i.e., sentence), tokenize the sentence using CRFLexicalAnalyzer in HanLP, and then count the non-stopwords --Reduce-> Sum up the number of each non-stopword --> Generate word-cloud using Kumo.

Usage

hadoop jar jar_path_of_the_project WordCount file_path(text)/to/process result_path(dir)/to/store

* The input file should be in the format of "one sentence per line".

Example

wordcloud of lotus

lotus_wordcloud

wordcloud of whale

whale_wordcloud

About

Data-Intensive-Computing Project: Word Count using MapReduce

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages