Skip to content

Instantly share code, notes, and snippets.

@glickmac
Last active December 17, 2019 20:18
Show Gist options
  • Save glickmac/18eead58bce8906b927b84492b952f83 to your computer and use it in GitHub Desktop.
Save glickmac/18eead58bce8906b927b84492b952f83 to your computer and use it in GitHub Desktop.
from collections import Counter
import numpy as np
from wordcloud import WordCloud, ImageColorGenerator
from PIL import Image
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
## Split into chapters
Chapters = text.split("chapter")
count = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment