분석1 [R] R을 이용하여 감정분석하기 -2- 이번 포스팅에서는 더 자세히 감정분석을 시행해 보도록하겠습니다. # 감정 범주별 단어 빈도 구하기 # 토큰화하고 두 글자 이상 한글 단어만 남기기 comment % unnest_tokens(input = reply, # 단어기준 토큰화 output = word, token = 'words', drop = F) %>% filter(str_detect(word, '[가-힣]') & # 한글 추출 str_count(word) >= 2) # 두 글자 이상 추출 #감정 및 단어별 빈도 구하기 frequency_word % filter(str_count(word) >= 2) %>% count(sentiment, word, sort = T) frequency_word # 긍정댓글 고빈도 단어 frequency_wor.. 2022. 3. 15. 이전 1 다음