| 
View
 

Word Frequency Analyzer1- Basic

Page history last edited by Dorai Thodla 17 years, 3 months ago
  1.  Accept one parameter - input file
  2. Open file - raise exception if it does not exist and exit the program
  3. Read input file, line by line
  4. For each line, tokenize (separate into words)
  5. Eliminate any punctuation characters ( period, comma, semi-colon, colon, question-mark, exclamation point and other non-alpha numeric characters)
  6. At the end of input file, produce the following output.
  7. Write an output file in the following format (sort it by descending order of frequency)

    word, frequencycount

Comments (0)

You don't have permission to comment on this page.