Skip to content

Counting words in text with Python. Just some harmless fun.

License

Notifications You must be signed in to change notification settings

lawsofthought/countingwhales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counting whales in Moby Dick with Python

One can never tire of counting things with Python. Here, I try to count the number of time the word whale or Whale, or plurals thereof, occur in the book Moby Dick.

The Python code is in a Jupyter notebook.

I recommend working in a Python 3 virtual environment, and installing the necessary with code pip install -r requirements.txt.

With that, the Jupyter notebook can be launched with jupyter notebook notebook.ipynb.

This has been inspired by Ben Bolker's http://bbolker.github.io/math1mp/notes/random/r11_moby.html

About

Counting words in text with Python. Just some harmless fun.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published