This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Short scripts for testing three different sentiment classifiers on tweets, | |
# acquiring the tweets used for testing, | |
# calculating systems' precision, recall and F-measures. | |
require(RCurl) # For downloading file from a given URL. | |
require(twitteR) # Used for the 'twitter' class. | |
require(sentiment) # For bayes and voter classifiers. | |
source("sent140.R") # Used for the Sentiment 140 API. Can be downloaded from here: | |
# https://github.com/okugami79/sentiment140/blob/master/R/sentiment.r |