| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Word Frequency Analyzer1- Basic

Page history last edited by Dorai Thodla 16 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.