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.
|
Method Summary |
double |
updateScore(double oldScore,
double numCW,
double numC,
double numW,
double num)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NegativeMutualInformation
public NegativeMutualInformation()
updateScore
public double updateScore(double oldScore,
double numCW,
double numC,
double numW,
double num)
- Specified by:
updateScore in class SimpleOrderer