Skip to content

Generates a word cloud from a text file where the size of the word is correlated to its frequency in the text.

Notifications You must be signed in to change notification settings

MarkoM-dot/WordCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#WordCloud Summary: Python code that generates a word cloud from a text file where the size of the word is proportional to its frequency found in the text. The Word Cloud can be generated from the command line. Please make sure that your first argument is your text file and the second one your mask. Here is an example in PowerShell: python ./wordcloud_example.py ./RomeoandJuliet.txt ./heart.jpeg

The image below was generated through calculating the frequencies of words found in Plutarch's 'Life of Solon'. I used an image of the parthenon as the mask. You are welcome to use your own text and mask.

This image is taken with a different heart shaped mask and the text is taken from Shakespeare's Romeo and Juliet. I've taken out some key character names to make it a little make the word cloud a little more challenging for the viewer.

About

Generates a word cloud from a text file where the size of the word is correlated to its frequency in the text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages