PYTHON/워드클라우드 (1) 썸네일형 리스트형 konlpy 0kt counter 써보기 from konlpy.tag import Okt from collections import Counter from konlpy.corpus import kolaw from konlpy.corpus import kobill import codecs okt = Okt() f = codecs.open('testtext.txt','r', encoding ='utf8') text = f.read() print(text) # kolaw.open('./testtext.txt').read()[:30] print("okt.morphs(text)") print(okt.morphs(text)) print("okt.nouns(text)") print(okt.nouns(text)) print("okt.phrases(text)".. 이전 1 다음