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)
WeightingSchemegetWeight in interface WeightingSchemetargetDocument - Document id for the target document.anchorText - Anchor text object.public void initialize(FileSystem fs, String... params)
WeightingSchemeinitialize in interface WeightingSchemefs - FileSystem object.params - Array of the string representation of the
parameters needed to initialize the weighting scheme.