Understanding the sentiments of your customers, what people are saying about your new product launch, or understanding latest trends in the market are vital for the success of your business and help you stay ahead of your competitors. In this recipe, we will perform real-time sentiment analysis from Twitter and classify it into various categories.
Text classification for sentiment analysis
Getting ready
First, sign up for a Twitter developer account (https://apps.twitter.com) and create a sample application to generate API keys and credentials under the Keys and Access Token tab, which we will require later to fetch real-time data from Twitter.
Then install the following packages:
install.packages(c("twitteR","...