Class Sentiments

java.lang.Object
  extended by Sentiments

public class Sentiments
extends java.lang.Object

A helper class for performing sentiment analysis

Version:
Sp15
Author:
Joel; utilizes data from EECS Berkeley 61a course

Method Summary
static double getWordSentiment(java.lang.String word)
          Returns a value representing the amount of positive or negative sentiment in the given word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWordSentiment

public static double getWordSentiment(java.lang.String word)
Returns a value representing the amount of positive or negative sentiment in the given word. This is a number between 1 (totally positive) and -1 (totally negative). Caputalization and punctuation in words is ignored

Parameters:
word - A word to get the sentiment of
Returns:
A value between 1 (totally positive) and -1 (totally negative).