R - 감성분석
트위터용 감성분석 install.packages("plyr") install.packages("twitteR") install.packages("stringr") library(twitteR) library(plyr) library(stringr) #감성 분석 함수 score.sentiment = function(sentences, pos.words, neg.words) { scores = laply(sentences, function(sentence, pos.words, neg.words) { sentence = gsub("[[:punct:]]", "", sentence) sentence = gsub("[[:cntrl:]]", "", sentence) sentence = gsub('\\d+', '', ..
2021. 6. 9.