You can use Word-Counter.py file for data analysis. While entering the name please consider adding name_of_file.txt (.txt) so that the interpreter doesn't wrongly assume that the file you entered the name of doesn't exit.
*Word-Counter.py: Main python file that has the code in it.
-
sample.txt: A small sample file that i used to check the correctness of my program as i was writing it. It was used for a small data entry, which made the debugging easy when i noticed anything funky.
-
us_constitution.txt: This a file with a lot of different words. I used this file at last when i was sure that i had no errors in my code -- to see the final result.
-
Cleanfile_wordsonly.txt: This .txt file is a copy of the file you put the name of. The only difference is that this file has replaced all the special character into blank spaces ' ' and all the alphabets are lower cased.
-
word_count.txt: This .txt file will have all of the words present in the file you wanted to scan. It stores the words and the number of times each of the words being repeated in a format given below. Word ===> Count
-
unique_words.txt: This .txt file consist of the word that were only seen once in the whole file. It is stored as:
- The_word