The guy who shows the words that appear frequently in the sentence in the size according to the frequency!
$ python3 -V
Python 3.7.3
$ mkdir wordcloud-sample
$ cd wordcloud-sample
$ python3 -m venv venv
$ source ./venv/bin/activate
$ pip install wordcloud
$ python3
Python 3.7.3 (default, Mar 6 2020, 22:34:30)
[Clang 11.0.3 (clang-1103.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from wordcloud import WordCloud
>>> WordCloud().generate("hello world").to_image().show()
It was good
Recommended Posts