public interface WeightingFunction
HyperspaceAnalogueToLanguage
instance should weigh co-occurrences based on
the word distance.Modifier and Type | Method and Description |
---|---|
double |
weight(int positionOffset,
int windowSize)
Returns the weighed value for a word at the specified offset.
|
double weight(int positionOffset, int windowSize)
positionOffset
- 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.