public class SingleLineTRECQuery extends TRECQuery
Properties:
desiredEncoding, IGNORE_DESC_NARR_NAME_TOKENS, index, logger, queries, query_ids, topicFiles
Constructor and Description |
---|
SingleLineTRECQuery()
Constructor - default
|
SingleLineTRECQuery(File queryfile)
Reads queries from the specified file
|
SingleLineTRECQuery(String queryfilename)
Reads queries from the specified filename
|
SingleLineTRECQuery(String[] queryfilenames)
Reads queries from the specified filenames
|
Modifier and Type | Method and Description |
---|---|
boolean |
extractQuery(String queryfilename,
Vector<String> vecStringQueries,
Vector<String> vecStringIds)
Extracts queries from the specified filename, adding their contents to vecStringQueries and the
corresponding query ids to vecStringIds.
|
extractQuery, getIndexOfCurrentQuery, getInfo, getNumberOfQueries, getQuery, getQueryId, getQueryIds, getTopicFilenames, hasMoreQueries, hasNext, main, next, nextQuery, remove, reset, toArray
public SingleLineTRECQuery()
public SingleLineTRECQuery(File queryfile)
public SingleLineTRECQuery(String queryfilename)
public SingleLineTRECQuery(String[] queryfilenames)
public boolean extractQuery(String queryfilename, Vector<String> vecStringQueries, Vector<String> vecStringIds)
extractQuery
in class TRECQuery
queryfilename
- String the name of a file containing topics.vecStringQueries
- Vector a vector containing the
queries as strings.vecStringIds
- Vector a vector containing the query
identifiers as strings.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow