Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<String> SentimentOnTweet {
- List<String> tweetSentiment = new ArrayList<String>();
- for(int i=0; i<tweetData.size(); i++)
- {
- String tweet = tweetData.get(i).getText();
- int value = Sentiment.findSentiment(tweet);
- tweetSentiment.add(Tweet+ "- Has a sentiment of: "+value);
- }
- return tweetSentiment;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement