mark.nlp.features
Class PointwiseChiSquared

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

public class PointwiseChiSquared
extends SimpleOrderer

A SimpleOrderer that orders according to according to the maximum of the constiuent addends in Pearson's Chi-Squared test. This orderer ignores its parameter.


Field Summary
 
Fields inherited from class mark.nlp.features.ClassificationOrderer
fCatCounters, fCounter, fPotentialFeatures
 
Constructor Summary
PointwiseChiSquared()
           
 
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

PointwiseChiSquared

public PointwiseChiSquared()
Method Detail

updateScore

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