((1-c) + c*sim) * 2^(1-d)
Note: this will not produce reproducible results in a multi-threaded environment
due to the TermFrequency constraint (RandomLabels are not guaranteed to be
processed in the same order, and may thus not always reach the threshold at the same point).
applyLeftWeighting(RandomLabel focusLabel,
int distance,
RandomLabel leftContextLabel)
Adds the weighted context label (in the left context) to the focus label's
context label and returns it.
float[]
applyRightWeighting(RandomLabel focusLabel,
int distance,
RandomLabel rightContextLabel)
Adds the weighted context label (in the right context) to the focus label's
context label and returns it.
Methods inherited from class moj.ri.weighting.WeightingScheme
Adds the weighted context label (in the left context) to the focus label's
context label and returns it.
Application writers must its own methods in a subclass to calculate
the weights according to specific algorithms.
Adds the weighted context label (in the right context) to the focus label's
context label and returns it.
Application writers must its own methods in a subclass to calculate
the weights according to specific algorithms.