| org.apache.lucene.benchmark.quality.Judge
All known Subclasses: org.apache.lucene.benchmark.quality.trec.TrecJudge,
Judge | public interface Judge (Code) | | Judge if a document is relevant for a quality query.
|
Method Summary | |
public boolean | isRelevant(String docName, QualityQuery query) Judge if document docName is relevant for the given quality query.
Parameters: docName - name of doc tested for relevancy. Parameters: query - tested quality query. | public int | maxRecall(QualityQuery query) Return the maximal recall for the input quality query. | public boolean | validateData(QualityQuery qq, PrintWriter logger) Validate that queries and this Judge match each other.
To be perfectly valid, this Judge must have some data for each and every
input quality query, and must not have any data on any other quality query. |
isRelevant | public boolean isRelevant(String docName, QualityQuery query)(Code) | | Judge if document docName is relevant for the given quality query.
Parameters: docName - name of doc tested for relevancy. Parameters: query - tested quality query. true if relevant, false if not. |
maxRecall | public int maxRecall(QualityQuery query)(Code) | | Return the maximal recall for the input quality query.
It is the number of relevant docs this Judge "knows" for the query.
Parameters: query - the query whose maximal recall is needed. |
validateData | public boolean validateData(QualityQuery qq, PrintWriter logger)(Code) | | Validate that queries and this Judge match each other.
To be perfectly valid, this Judge must have some data for each and every
input quality query, and must not have any data on any other quality query.
Note: the quality benchmark run would not fail in case of imperfect
validity, just a warning message would be logged.
Parameters: qq - quality queries to be validated. Parameters: logger - if not null, validation issues are logged. true if perfectly valid, false if not. |
|
|