Skip to content

a tool that will read as an input a text file and then perform several word analytics tasks

Notifications You must be signed in to change notification settings

RemaAlorine/Text-Analysis-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Text-Analysis-Tool

a tool that will read as an input a text file and then perform several word analytics tasks

Operations:

(1) An operation to determine the total number of words in a text file (i.e., the length of the file).


(2) An operation to determine the total number of unique words in a text file.


(3) An operation to determine the total number of occurrences of a particular word.


(4) An operation to determine the total number of words with a particular length.


5) An operation to display the unique words and their occurrences sorted by the total occurrences of each word (from the most frequent to the least).


(6) An operation to display the locations of the occurrences of a word starting from the top of the text file (i.e., as a list of line and word positions). Note that every new-line character ‘\n’ indicates the end of a line.


(7) An operation to examine if two words are occurring adjacent to each other in the file (at least one occurrence of both words is needed to satisfy this operation).


Remarks:

• lines end with "\n"

• words are separated by at least one space.

• Single letter words (e.g., a, I) are counted as words.

• Punctuation (e.g., commas, periods, etc.) is to be ignored.

• Hyphenated words (e.g., decision-makers) or apostrophized words (e.g., customer’s) are to be read as single words.

About

a tool that will read as an input a text file and then perform several word analytics tasks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages