감성분석
-
사전 기반의 감성분석(Sentiment Analysis)Python 2020. 3. 3. 14:37
# 패키지 설치하기 !pip install modin !pip install afinn # 패키지 로딩하기 import modin.pandas as pd import numpy as np import glob import matplotlib.pyplot as plt from afinn import Afinn from nltk.stem.porter import PorterStemmer from nltk.corpus import stopwords from nltk.tokenize import RegexpTokenizer # 데이터 읽어오기 pos_review = glob.glob("d:/deeplearning/textmining/pos/*.txt")[20] pos_file = open(pos_review, ..