mark.nlp.features
Class NegativeMutualInformation

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

public class NegativeMutualInformation
extends SimpleOrderer

A SimpleOrderer that orders according to the following formula: score (w) = -1 * 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
NegativeMutualInformation()
           
 
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

NegativeMutualInformation

public NegativeMutualInformation()
Method Detail

updateScore

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