This app counts the word frequency for a given text file.
Can calculate the word frequency in parallel mode or in sequence mode.
Uses MPJ Express (http://mpjexpress.org/) MPI implementation.
Before development, run the install_libs_to_maven.sh script to add the required libs to the local Maven repository.
- To develop locally run
mvn clean install
- Compile the source code.
- Launch the application with the following command
wordfreq.sh 3 ./text/input_text.txt
- The first argument represents the thread count with which to do the counting task.
- The second argument represents the path to the text file where the word frequency needs to be found.
- To see the results, you have to open up the ./results folder