Class TrecTopicsReader
java.lang.Object
org.apache.lucene.benchmark.quality.trec.TrecTopicsReader
Read TREC topics.
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadQueries
(BufferedReader reader) Read quality queries from trec format topics file.
-
Constructor Details
-
TrecTopicsReader
public TrecTopicsReader()Constructor for Trec's TopicsReader
-
-
Method Details
-
readQueries
Read quality queries from trec format topics file.- Parameters:
reader
- where queries are read from.- Returns:
- the result quality queries.
- Throws:
IOException
- if cannot read the queries.
-