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. – Metaqdap::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. – Impugn> install.packages("C:/Users/Documents/R/win-library/2.15/sentiment.zip", repos=NULL)
Installing package(s) into ‘C:/Users/Documents/R/win-library/2.15’ (as ‘lib’ is unspecified)
package ‘sentiment’ successfully unpacked and MD5 sums checked
> library(sentiment)
Error in library(sentiment) : ‘sentiment’ is not a valid installed package
Am I missing something – Reading