|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.benchmark.quality.trec.TrecJudge
public class TrecJudge
Judge if given document is relevant to given quality query, based on Trec format for judgements.
| Constructor Summary | |
|---|---|
TrecJudge(BufferedReader reader)
Constructor from a reader. |
|
| Method Summary | |
|---|---|
boolean |
isRelevant(String docName,
QualityQuery query)
Judge if document docName is relevant for the given quality query. |
int |
maxRecall(QualityQuery query)
Return the maximal recall for the input quality query. |
boolean |
validateData(QualityQuery[] qq,
PrintWriter logger)
Validate that queries and this Judge match each other. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrecJudge(BufferedReader reader)
throws IOException
Expected input format:
qnum 0 doc-name is-relevant
Two sample lines:
19 0 doc303 1
19 0 doc7295 0
reader - where judgments are read from.
IOException| Method Detail |
|---|
public boolean isRelevant(String docName,
QualityQuery query)
JudgedocName is relevant for the given quality query.
isRelevant in interface JudgedocName - name of doc tested for relevancy.query - tested quality query.
public boolean validateData(QualityQuery[] qq,
PrintWriter logger)
Judge
validateData in interface Judgeqq - quality queries to be validated.logger - if not null, validation issues are logged.
public int maxRecall(QualityQuery query)
Judge
maxRecall in interface Judgequery - the query whose maximal recall is needed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||