|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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-relevantTwo 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)
Judge
docName
is relevant for the given quality query.
isRelevant
in interface Judge
docName
- name of doc tested for relevancy.query
- tested quality query.
public boolean validateData(QualityQuery[] qq, PrintWriter logger)
Judge
validateData
in interface Judge
qq
- quality queries to be validated.logger
- if not null, validation issues are logged.
public int maxRecall(QualityQuery query)
Judge
maxRecall
in interface Judge
query
- the query whose maximal recall is needed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |