public class TermRunner extends TermRunner
| Constructor and Description |
|---|
TermRunner(int model,
double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
Constructor for the TermRunner object
|
TermRunner(int model,
IListWasher washer,
double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
Constructor for the TermRunner object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
evaluate(long uid)
Return the calculated similarity.
|
getProx, invalidReason, termspublic TermRunner(int model,
IListWasher washer,
double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
r, and a term that is in the given field
, its token type is name , and its text is text
.model - Description of the Parameterwasher - Description of the Parameteridf - the inverse document frequencyr - the Rider used by this Runnerfield - Description of the Parametertoken - the token describing the search termboost - Description of the Parameterreq - Description of the Parameterproh - Description of the Parameterpublic TermRunner(int model,
double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
model - Description of the Parameteridf - Description of the Parameterr - Description of the Parameterfield - Description of the Parametertoken - Description of the Parameterboost - Description of the Parameterreq - Description of the Parameterproh - Description of the Parameterpublic int evaluate(long uid)
uid , then it returns 0. Otherwise is calculates the
similarity as 1+w*idf . More details can be found in
the Runner class entry.evaluate in class TermRunneruid - the unique ID of the documentCopyright © 2016 Egothor. All Rights Reserved.