applyLeftWeighting(RandomLabel focusLabel,
int distance,
RandomLabel leftContextLabel)
Calculates the weight based upon the distance (in the left context) to
the current label in the following manner: weight=(2^(1-distance to focus word)).
float[]
applyRightWeighting(RandomLabel focusLabel,
int distance,
RandomLabel rightContextLabel)
Calculates the weight based upon the distance (in the right context) to
the current label in the following manner: weight=(2^(1-distance to focus word)).
Methods inherited from class moj.ri.weighting.WeightingScheme
public float[] applyLeftWeighting(RandomLabel focusLabel,
int distance,
RandomLabel leftContextLabel)
Calculates the weight based upon the distance (in the left context) to
the current label in the following manner: weight=(2^(1-distance to focus word)).
focusLabel - RandomLabel in focus, i.e. the focus word whose context vector
should be modified with the weighted RandomLabel in left context.
distance - leftward distance to the focus word (RandomLabel).
leftContextLabel - RandomLabel in left context at distance from
the focus word, which can be used together with distance to
calculate the weight.
Returns:
the context of the focus word modified according to the weighting scheme.
applyRightWeighting
public float[] applyRightWeighting(RandomLabel focusLabel,
int distance,
RandomLabel rightContextLabel)
Calculates the weight based upon the distance (in the right context) to
the current label in the following manner: weight=(2^(1-distance to focus word)).