----___<<<<< 2020. 3. 4. 21:12

일단 conda install -c conda-forge wordcloud 로 설치하시고

 

import matplotlib.pyplot as plt
from wordcloud import WordCloud

text = open('us.txt').read()

wordcloud = WordCloud().generate(text)

plt.figure(figsize=(12,12))
plt.imshow(wordcloud, interpolation = "bilinear")
plt.axis("off")
plt.show()

 

 

 

 

 

 

--참조

 

https://amueller.github.io/word_cloud/auto_examples/masked.html#sphx-glr-auto-examples-masked-py

https://pinkwink.kr/1029

https://busy.org/@anpigon/2