dgrtwo / tidy-text-mining

Manuscript of the book "Tidy Text Mining with R" by Julia Silge and David Robinson
http://tidytextmining.com
Other
1.32k stars 805 forks source link

tidytext 0.2.1 get_sentiments now needs interactive lexicon download and also removed NRC lexicon #64

Closed eoayala closed 5 years ago

eoayala commented 5 years ago

After updating tidytext package to version 0.2.1, changes in get_sentiments behaviour has broken code in 02-sentiment-analysis.Rmd (lines 38-40):

get_sentiments("nrc") Error in match.arg(lexicon) : 'arg' should be one of “afinn”, “bing”, “loughran”

juliasilge commented 5 years ago

We have ✨ good news ✨ on this front, as the creators of the NRC lexicon have given permission for us to include their work in the textdata package, the new way we are providing access to datasets like this. Once we add the dataset (tracked in EmilHvitfeldt/textdata#10) I will get this set back up to its original state.

juliasilge commented 5 years ago

The book now builds again. 🎉

The book is written as if the user has already downloaded the datasets, as I think the interactive menu is pretty straightforward. If folks come with questions on this, I can adjust text in the book in the future.

The datasets are stored in data/ in this repo, and the .Rmd files look for the datasets there.