mark.nlp.features
Class MutualInformation

java.lang.Object
  |
  +--mark.nlp.features.ClassificationOrderer
        |
        +--mark.nlp.features.SimpleOrderer
              |
              +--mark.nlp.features.MutualInformation
All Implemented Interfaces:
Orderer

public class MutualInformation
extends SimpleOrderer

A SimpleOrderer that orders according to the following formula: score (w) = sum_c_in_C_and_w_in_W [p(c,w) * log [p(c,w) / p(c) / p(w)]] where C is the set of categories and V is {^w,w}. This orderer ignores its parameter.


Field Summary
 
Fields inherited from class mark.nlp.features.ClassificationOrderer
fCatCounters, fCounter, fPotentialFeatures
 
Constructor Summary
MutualInformation()
           
 
Method Summary
 double updateScore(double oldScore, double numCW, double numC, double numW, double num)
           
 
Methods inherited from class mark.nlp.features.SimpleOrderer
computeJustScores, computeJustScores, computeScores
 
Methods inherited from class mark.nlp.features.ClassificationOrderer
order, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutualInformation

public MutualInformation()
Method Detail

updateScore

public double updateScore(double oldScore,
                          double numCW,
                          double numC,
                          double numW,
                          double num)
Specified by:
updateScore in class SimpleOrderer