251014 TIL
WordCloudfrom matplotlib import pyplotfrom wordcloud import WordCloudtext = ''with open("res/이상한나라의앨리스.txt", "r", encoding="utf-8") as f: text = f.read()wc = WordCloud( width=1200, height=800, scale=3.0)gen = wc.generate(text)gen.words_# 금지어 설정 모듈from wordcloud import STOPWORDS# 금지어 설정# -> 금지어 : said, alice, Gutenbergignore = set(STOPWORDS)ignore.add("said")ignore.add("alice")ignore...
2025.10.14