Wordcloud based on personal notes of my work at ILRI ranging from 2010 to 2021.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Alan Orth 5bcb087be3
README.md: minor edit
1 year ago
src Initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md README.md: minor edit 1 year ago
cow-wordcloud.png Initial commit 1 year ago
poetry.lock Initial commit 1 year ago
pyproject.toml Initial commit 1 year ago
setup.cfg Initial commit 1 year ago
wordcloud.png Initial commit 1 year ago

README.md

Wordcloud of my ILRI work

Wordcloud in a cow mask

Generate

Concatenate text files together, put every word on its own line, and do some minor replacements to remove HTML tags, Markdown, and normalize some technical terms:

$ cat changelog/*.txt ~/src/git/cgspace-notes/content/posts/* | tr -s '[:blank:]' '\n' | sed -f src/replacements.sed | fgrep -vwf src/stopwords-en.txt > src/work.txt

Then create a normal wordcloud:

$ wordcloud_cli --text src/work.txt --stopwords src/stopwords-en.txt --fontfile /usr/share/fonts/TTF/CascadiaCode.ttf --height 1080 --width 1920 --imagefile wordcloud.png

And create the cow-shaped wordcloud:

$ src/masked.py

This code is based on examples/masked.py in the word_cloud project.

Acknowledgements

License

MIT