Skip to content

A python script to generate word clouds from text file.

License

Notifications You must be signed in to change notification settings

Stathis-Kal/word-cloud

Repository files navigation

Word-Cloud 🔠☁

About

CodeFactor

In this repository I used a Python library to generate Word Clouds. See full documentation here.

I used my favorite book "Lord of the Flies" by William Golding. There is a free for use pdf copy which I transformed it to .txt file.

The python script generates 4 different word clouds, separated by two categories:

  1. Default square word clouds
  2. Masked with an image word clouds

Following for each of the category I changed the default colors to a custom ones.

The image which I have used as a mask can be found here and it has been downloaded from here.

Display

1. Default Word Cloud with default colors.

alt text

2. Default Word Cloud with range of blue colors.

alt text

3. Masked Word Cloud with default colors.

alt text

4. Masked Word Cloud with colors from the masked image.

alt text