I am trying to run the code below but I am getting an error
no loop for break/next, jumping to top level.
The problem seems to be with vader_df, but I am not sure what is going wrong or how I can fix it. vader_df is supposed to take a vector of text and return a dataframe of sentiment analysis for the text (although that clearly isn't happening here!).
Any help is appreciated.
library(vader)
library(tidyverse)
library(billboard)
data(lyrics)
lyrics <- lyrics %>%
rename(song_lyrics = lyrics)
sentiment_lyrics <- vader_df(lyrics$song_lyrics, neu_set = F)
Please note you have a dataset of 5701 records.
Analyzing 100 of these
song_lyricstakes almost 38 seconds on my machine (Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz 3.60 GHz). This means about 36 minutes for all data sets.For me the
vader_dffunction processes only usingneu_set = TRUEfor this test case.If it is possible for your requirements, just count the neutral words by the default value
neu_set = TRUEand gradually increase the processed number of texts.