public class TFIDFScoringFunction extends ScoringFunction
| Constructor and Description |
|---|
TFIDFScoringFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Node domNode)
Configures this scoring function.
|
float |
getMinScore()
Returns the minimum possible score.
|
float |
getScore(int tf,
int docLen)
Computes score.
|
void |
initialize(GlobalTermEvidence termEvidence,
GlobalEvidence globalEvidence)
Initializes this scoring function with global evidence.
|
String |
toString() |
create, getGlobalEvidence, getGlobalTermEvidence, getMaxScorepublic void configure(Node domNode)
ScoringFunctionconfigure in class ScoringFunctiondomNode - DOM node containing configuration datapublic float getMinScore()
ScoringFunctiongetMinScore in class ScoringFunctionpublic float getScore(int tf,
int docLen)
ScoringFunctiongetScore in class ScoringFunctionpublic void initialize(GlobalTermEvidence termEvidence, GlobalEvidence globalEvidence)
ScoringFunctioninitialize in class ScoringFunctiontermEvidence - term evidenceglobalEvidence - global evidence