public class EvenWeighting extends Object implements WeightingFunction
HyperspaceAnalogueToLanguage instance should weigh co-occurrences
based on the word distance.| Constructor and Description |
|---|
EvenWeighting() |
| Modifier and Type | Method and Description |
|---|---|
double |
weight(int positionOffset,
int windowSize)
Returns a constant value for the weight regardless of distance
|
public double weight(int positionOffset,
int windowSize)
weight in interface WeightingFunctionpositionOffset - the location of the word relative to the current
positionwindowSize - the maximum nubmer of words on one side that will be
considered for weightingCopyright © 2012. All Rights Reserved.