Skip to content

sashabratchikov/5_lang_frequency

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Frequency Analysis of Words

lang_frequency.py contains two functions:

load_data(filepath) – takes path to text file and returns its content
get_most_frequent_words(text) – takes string and returns list with ten most frequent words

How to use:

python3 lang_frequency.py <path to file>

Result (10 most frequent words):

Ten most frequent words: ['this', 'list', 'contains', 'ten', 'most', 'frequent', 'words', 'in', 'descending', 'order']

Project Goals

The code is written for educational purposes. Training course for web-developers - DEVMAN.org

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%