Class TrecJudge
Judge if given document is relevant to given quality query, based on Trec format for judgements.
Inheritance
System.Object
TrecJudge
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Benchmarks.Quality.Trec
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class TrecJudge : IJudge
Constructors
| Improve this Doc View SourceTrecJudge(TextReader)
Constructor from a reader.
Declaration
public TrecJudge(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | Where judgments are read from. |
Remarks
Expected input format:
qnum 0 doc-name is-relevant
Two sample lines:
19 0 doc303 1
19 0 doc7295 0
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error. |
Methods
| Improve this Doc View SourceIsRelevant(String, QualityQuery)
Declaration
public virtual bool IsRelevant(string docName, QualityQuery query)
Parameters
Type | Name | Description |
---|---|---|
System.String | docName | |
QualityQuery | query |
Returns
Type | Description |
---|---|
System.Boolean |
MaxRecall(QualityQuery)
Declaration
public virtual int MaxRecall(QualityQuery query)
Parameters
Type | Name | Description |
---|---|---|
QualityQuery | query |
Returns
Type | Description |
---|---|
System.Int32 |
ValidateData(QualityQuery[], TextWriter)
Declaration
public virtual bool ValidateData(QualityQuery[] qq, TextWriter logger)
Parameters
Type | Name | Description |
---|---|---|
QualityQuery[] | ||
System.IO.TextWriter | logger |
Returns
Type | Description |
---|---|
System.Boolean |