The "sentiment" package in R was removed from the Cran repository. What are the other packages which can do Sentiment Analysis?
For example, how I can rewrite this using other packages?
library(sentiment)
# CLASSIFY EMOTIONS
classify_emotion(some_txt,algorithm="bayes",verbose=TRUE)
# classify polarity
class_pol = classify_polarity(some_txt, algorithm="bayes")
Where documents here is defined as:
# DEFINE text
some_txt<- c("I am very happy at stack overflow , excited, and optimistic.",
"I am very scared from OP question, annoyed, and irritated.")
library(sos) ;findFn('sentiment analysis')
, you have essentially,qdap
andtextir
but there is alsotm.plugin.sentiment
for time series .. Thesentiment
package is still exist in R-Forge also.qdap::polarity
function is an implementation based on the first link Ben provides but with a custom algorithm. I'm not happy with it but haven't had time to develop it further yet.