Uses of Class
uk.ac.cam.juliet.twitter.analysis.Classification

Packages that use Classification
uk.ac.cam.juliet.twitter.analysis   
uk.ac.cam.juliet.twitter.database   
uk.ac.cam.juliet.twitter.testing   
 

Uses of Classification in uk.ac.cam.juliet.twitter.analysis
 

Methods in uk.ac.cam.juliet.twitter.analysis that return Classification
static Classification Classification.valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Classification[] Classification.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Methods in uk.ac.cam.juliet.twitter.analysis with parameters of type Classification
 void BayesLearner.addTrainingTweet(Tweet tweet, Classification c)
          the method used to train the algorithm, simply pass the tweet, and whether it is positive or negative, and the hypothesis will be improved based on that
 double BayesClassifier.getConditionalProbability(java.lang.String feature, Classification c)
          calculates the mathematical expression
 

Uses of Classification in uk.ac.cam.juliet.twitter.database
 

Methods in uk.ac.cam.juliet.twitter.database with parameters of type Classification
 double IDatabase.getChiSquared(java.lang.String word, Classification c)
          calculates the chi-square function which measures the independence of the class c of the parameter word , the lower the score the more independent is that word from this class
for good explaination of the chi-squared function check the 6th page of this document from Stanford university
 double Database.getChiSquared(java.lang.String word, Classification c)
           
 int IDatabase.getClassificationCount(Classification c)
          counts the number of tweets in the training data that belong to classification c
 int Database.getClassificationCount(Classification c)
           
 int IDatabase.getCountPerClassification(java.lang.String feature, Classification c)
          counts the number of tweets in the training data that have the feature "feature" and have classification "c"
 int Database.getCountPerClassification(java.lang.String feature, Classification c)
           
 void IDatabase.incrementChiSquareWordCount(java.lang.String word, Classification c)
          inserts (word,0,0) in the table if word is not in the table already, and increments either n_p if c = positive or n_n of c = negative
 void Database.incrementChiSquareWordCount(java.lang.String word, Classification c)
           
 boolean IDatabase.insertTrainingTweet(Tweet tweet, Classification c)
          attempts to insert the given tweet in the database alongside its classification, if the insertion fails, the method doesn't do anything
 boolean Database.insertTrainingTweet(Tweet tweet, Classification c)
           
 

Uses of Classification in uk.ac.cam.juliet.twitter.testing
 

Methods in uk.ac.cam.juliet.twitter.testing with parameters of type Classification
 double MockDatabase.getChiSquared(java.lang.String word, Classification c)
           
 int MockDatabase.getClassificationCount(Classification c)
           
 int MockDatabase.getCountPerClassification(java.lang.String feature, Classification c)
           
 void MockDatabase.incrementChiSquareWordCount(java.lang.String word, Classification c)
           
 boolean MockDatabase.insertTrainingTweet(Tweet tweet, Classification c)