Skip to content

This program shows you how much each letter is repeated in the text files in books folder

Notifications You must be signed in to change notification settings

amrear/English-letters-Frequency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies

  • matplotlib 3.2.2

main.py and main_counter.py are almost identical, the difference is that main.py uses some dictionaries and increment oprators to count the number of letters where as main_counter.py uses the Counter which has the same purpose and exisists in collections library. You can specify in run.py which one you want to use. just import the one that you want in run.py and then run it to see the results. Surprisingly, main.py works faster!

If you want to save the results as an image, you can also specify the name of the image as an optional argument to the LetterFrequency class in run.py

Books were downloaded from www.gutenberg.org

About

This program shows you how much each letter is repeated in the text files in books folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages