public class Spam extends Object implements WeightingScheme
Constructor and Description |
---|
Spam() |
Modifier and Type | Method and Description |
---|---|
float |
getWeight(int targetDocument,
AnchorText anchorText)
Computes a relevence score of the given anchor text (pseudo quert)
and a target document (pseudo judgment)
|
void |
initialize(FileSystem fs,
String... params)
Initializes the current weighting scheme with the given
set of parameters.
|
String |
toString() |
public float getWeight(int targetDocument, AnchorText anchorText)
WeightingScheme
getWeight
in interface WeightingScheme
targetDocument
- Document id for the target document.anchorText
- Anchor text object.public void initialize(FileSystem fs, String... params)
WeightingScheme
initialize
in interface WeightingScheme
fs
- FileSystem object.params
- Array of the string representation of the
parameters needed to initialize the weighting scheme.