Skip to content

KazZBodnar/zipf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A programming exercise based on Zipf's law

A common word sorter written in python

Note

I wrote this a while ago, but have now realized that it is very similar to this.

Instalation

Linux and macOS

-git clone https://github.com/KazMalhotra/zipf.git
-cd zipf
-pip install str

Windows

Download the zip file and extract. Install python and pip.

Usage

-python main.py inputfile.txt sortedwords.csv

Example

-python main.py juliuscaesar.txt sorted.csv

Simple explanation of Zipf's law

Zipf's law is based on the premise that common words are used far more than uncommon words.

About

A common word sorter written in python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages