-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
positive and negative columns names are not returned when there are no positive and negative when using extract_sentiment_terms functions #41
Comments
Can you provide a minimal working example? |
I'm not seeing how you're using this with data.table? Can you show the use case? |
dt <- data.table(comments = c("She is a good girl and I like her.", "He is arrogant.")) Error in |
when using extract_sentiment_terms in the context of a data.table, extract_sentiment_terms is not returning positive and neutral columns which is causing extract_sentiment_terms function fail on records below it.
datatable[, Positive.Terms :=
extract_sentiment_terms(Comment)[,positive], by = "Comment"]
Error in
[.data.table
(extract_sentiment_terms("Attach files by dropping, Choose Files selecting them from the clipboard."), :Variable 'positive' is not found in calling scope. Looking in calling scope because either you used the .. prefix or set with=FALSE
This above issue is causing the records below the failed records also fail.
Is there any better way to use this function in context of data.table to over come this problem.
The text was updated successfully, but these errors were encountered: