Closed Anqi525 closed 5 years ago
Thanks for asking this question @Anqi525! 🙌
As of commit 24d6e1bf2010df5992b6401922e486ac8e990e95 the NRC lexicon is available within tidytext again. You will need to install the development versions of both textdata and tidytext, and then all will work again.
library(remotes)
install_github("EmilHvitfeldt/textdata")
install_github("juliasilge/tidytext")
After these are installed, you can access the NRC lexicon the way you did before:
library(tidytext)
get_sentiments("nrc")
We will get both of these updates on CRAN soon. 🎉
Hello Julia,
Thank you for answering my question, I tried the above codes, however, I still got error messages:
Error: Failed to install 'tidytext' from GitHub: (converted from warning) cannot remove prior installation of package 'tibble' Traceback:
Could you help with this?
Best wishes, Angie
Error: Failed to install 'textdata' from GitHub: (converted from warning) cannot remove prior installation of package 'tibble' Traceback:
I got the same errors. I downloaded the NRC_Emotion_Lexicon files from sentiment.nrc.ca/lexicons-for-research, and I used the NRC-Emotion-Lexicon-Wordlevel-v0.92 text file. I subsetted the text file to include only numbers > 0, and now I think my subsetted file has exactly what get_sentiments("nrc") has.
If you use this lexicon, then please cite it.
1: Yes 2: No
Selection: 1 Error: 'C:/Users/daneshwar.sharma/AppData/Local/textdata/textdata/Cache/nrc/NRC-Emotion-Lexicon/NRC-Emotion-Lexicon-v0.92/NRC-Emotion-Lexicon-Wordlevel-v0.92.txt' does not exist.
having problem in downloading nrc. even after following -----
library(remotes) install_github("EmilHvitfeldt/textdata") install_github("juliasilge/tidytext")
library(tidytext) library(textdata)
get_sentiments("nrc")
@daneshwarsharma
Could you try running the following two lines of code for me and show us the full output.
textdata::lexicon_nrc(delete = TRUE)
textdata::lexicon_nrc()
Dear, This is the error.
On Sat, Oct 19, 2019, 22:37 Emil Hvitfeldt notifications@github.com wrote:
@daneshwarsharma https://github.com/daneshwarsharma
Could you try running the following two lines of code for me and show us the full output.
textdata::lexicon_nrc(delete = TRUE)textdata::lexicon_nrc()
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/juliasilge/tidytext/issues/146?email_source=notifications&email_token=ANPU4SRIYN2AFVZWZAOVFGTQPM5EBA5CNFSM4H7H7CW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXW4CY#issuecomment-544173579, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANPU4SXORKACT7EHUJVDQSTQPM5EBANCNFSM4H7H7CWQ .
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Hello,
I was trying to use NRC for emotional analysis, however I found out that NRC had been removed from Tidytext package.
I saw > 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.
I am wondering, do we use the same method to call NRC when we want to perform text mining project?
Could you provide some details about how to use it?
Best wishes, Angie