Research Article

User Classification and Stock Market-Based Recommendation Engine Based on Machine Learning and Twitter Analysis

Algorithm 2

Company-based sentiments.
Input: tweet-based sentiment analysis
Output: company-based sentiment score process
(1)Find the unique company names from the tweet sentiment matrix
(2)For each of the companies, compute the following: and
 where PS(k) is the positive sentiment of kth tweet for company c, NS(k) is the negative sentiment of kth tweet for company c, PS(c) is the total positive sentiment for the company, and NS(c) is the total negative
(3)The total sentiment for each company will be computed as {Company Name, Total Positive, Total Negative}