7
I'd like to create a word cloud on the linux command-line, similar to wordle and similar services. How can I do that? I have plain-text files and I'd like to create a word-cloud for each one.
7
I'd like to create a word cloud on the linux command-line, similar to wordle and similar services. How can I do that? I have plain-text files and I'd like to create a word-cloud for each one.
11
See this word cloud generator written in Python:
https://github.com/amueller/word_cloud
It can be easily installed with pip using this command:
pip install wordcloud
2Please add some content instead of just posting links – Gaurav Joseph – 2015-01-16T03:35:53.093
I had to use
sudo pip install wordcloud
. From there,wordcloud_cli.py
worked from the command line. Thanks for the answer. – 6005 – 2017-09-26T17:33:03.847@6005
– TheDudeAbides – 2019-10-25T03:24:20.000pip install --user wordcloud
will work fine, if you also update yourPATH
variable to include$HOME/.local/bin
(on Linux) or$HOME/Library/Python/X.Y/bin
(on Mac), where X.Y are the major and minor versions of your Python version (check withpython -V
). Here is a guide for adding a directory to thePATH
environment variable on a Mac; "Method #1" works for Linux, too.