You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scrapes the IMDb website for movie reviews and returns a list of scores.
22
+
# Words to test sentiment
23
+
test <- c('I am a very happy person.', 'I am a very sad person',
24
+
'I’ve always understood happiness to be appreciation. There is no greater happiness than appreciation for what one has- both physically and in the way of relationships and ideologies. The unhappy seek that which they do not have and can not fully appreciate the things around them. I don’t expect much from life. I don’t need a high paying job, a big house or fancy cars. I simply wish to be able to live my life appreciating everything around me.
25
+
')
43
26
44
-
### scrape.striplinks <- function(text)
45
-
Strips all links of the form `http*` found in text. Useful for normalizing sentimetn scores
27
+
# 1. Simple Summation
28
+
out <- classify.aggregate(test, positive, negative)
0 commit comments