250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Gmarket
- Websocket
- 방식으로 텍스트
- 과학백과사전
- 코사인 유사도
- spring MVC(모델2)방식
- 토픽추출
- pytorch
- Python
- java
- 지마켓
- jsp 파일 설정
- Topics
- mysql
- oracle
- 이력서
- 자바
- lda
- RESFUL
- 파이썬
- 크롤링
- (깃)git bash
- test
- 네이버뉴스
- r
- 게시판 만들기
- tomoto
- word2vec
- 幼稚园杀手(유치원킬러)
- db
Archives
- Today
- Total
목록python: 200529-python_문서내 단어 빈도 분석 (1)
무회blog
python: 200529-python_문서내 단어 빈도 분석
import pandas as pd from konlpy.tag import Kkma from konlpy.utils import pprint kkma = Kkma() f = open('C:\\Users\\user\\Documents\\PythonTest\\Data\\문재인대통령취임연설문.txt', 'r') lines = f.readlines() f.close() # 형태소 분석하여 명사만 추출 temp = [] for i in range(len(lines)): temp.append(kkma.nouns(lines[i])) def flatten(l): flatList = [] for elem in l: if type(elem) == list: for e in elem: flatList.append(e) e..
Python
2020. 5. 29. 19:28