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.
- Host: GitHub
- URL: https://github.com/ralphpina/stringfrequency
- Owner: ralphpina
- Created: 2014-04-18T18:31:57.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-18T18:40:37.000Z (about 12 years ago)
- Last Synced: 2025-02-05T21:02:18.781Z (over 1 year ago)
- Language: Java
- Size: 1.82 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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