An open API service indexing awesome lists of open source software.

https://github.com/ralphpina/stringfrequency

Class that implements a method that returns a list of number n ordered by the numbers of appearances of the most common n words.
https://github.com/ralphpina/stringfrequency

Last synced: over 1 year ago
JSON representation

Class that implements a method that returns a list of number n ordered by the numbers of appearances of the most common n words.

Awesome Lists containing this project

README

          

StringFrequency
===============

Class that implements a method that returns a list of number n ordered by the numbers of appearances of the most common n words.

To run this file you would edit StringFrequencyExample to change the number of words you would like the list to return.

Then you would do: java StringFrequencyExample test_docs/war_and_peace.txt
I am using war_and_peace.txt, but you can pass it any other txt file.

To run the tests you would execute in the main directory: java -cp .:junit-4.11.jar:hamcrest-core-1.3.jar org.junit.runner.JUnitCore StringFrequencyTest