NRC Emolex (Lexicon) in R

892 Views Asked by At

im a newbie and im trying to get to work with Rstudio for my final project. As i know that NRC Emolex is available in 40+ languages including Indonesian language. My problem is, I still dont know how to get the sentiment score with NRC Emolex in Indonesia language. I hope everybody can help, thank you in advance!

enter image description here

code that i tried

    setwd("F:/SKRIPSI/EKSTRAKSI FITUR/TEST")

#install.packages("tidyverse")
#install.packages("tidytext")
#install.packages("textdata")

library(tidyverse)      # data manipulation & plotting
library(stringr)        # text cleaning and regular expressions
library(tidytext)       # provides additional text mining functions

# to see the individual lexicons try
get_sentiments("afinn")
get_sentiments("bing")
get_sentiments("nrc")

data that i want to import and use https://drive.google.com/file/d/1tzdZlfS-mf2Y6W-bYQC4qMR9n7AEwgfn/view?usp=sharing

0

There are 0 best solutions below