Class TrecTopicsReader
Read TREC topics.
Inherited Members
Namespace: Lucene.Net.Benchmarks.Quality.Trec
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class TrecTopicsReader
Remarks
Expects this topic format -
<top>
<num> Number: nnn
<title> title of the topic
<desc> Description:
description of the topic
<narr> Narrative:
"story" composed by assessors.
</top>
Comment lines starting with '#' are ignored.
Constructors
TrecTopicsReader()
Constructor for Trec's TopicsReader
Declaration
public TrecTopicsReader()
Remarks
Expects this topic format -
<top>
<num> Number: nnn
<title> title of the topic
<desc> Description:
description of the topic
<narr> Narrative:
"story" composed by assessors.
</top>
Comment lines starting with '#' are ignored.
Methods
ReadQueries(TextReader)
Read quality queries from trec format topics file.
Declaration
public virtual QualityQuery[] ReadQueries(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | where queries are read from. |
Returns
Type | Description |
---|---|
QualityQuery[] | the result quality queries. |
Remarks
Expects this topic format -
<top>
<num> Number: nnn
<title> title of the topic
<desc> Description:
description of the topic
<narr> Narrative:
"story" composed by assessors.
</top>
Comment lines starting with '#' are ignored.
Exceptions
Type | Condition |
---|---|
IOException | if cannot read the queries. |