Package org.terrier.querying
Class RelevanceFeedbackSelector
- java.lang.Object
-
- org.terrier.querying.FeedbackSelector
-
- org.terrier.querying.RelevanceFeedbackSelector
-
public class RelevanceFeedbackSelector extends FeedbackSelector
Selects feedback documents from a qrels file, using the query id. NB, will select all documents, irrespective of relevance.Properties:
- qe.feedback.filename - filename of qrels file to use for feedback.
- Since:
- 3.0
- Author:
- Craig Macdonald
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
protected MetaIndex
metaIndex
protected gnu.trove.THashMap<java.lang.String,java.util.List<org.terrier.querying.RelevanceFeedbackSelector.FeedbackWithDocno>>
queryidRelDocumentMap
-
Fields inherited from class org.terrier.querying.FeedbackSelector
index
-
-
Constructor Summary
Constructors Constructor Description RelevanceFeedbackSelector()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedbackDocument[]
getFeedbackDocuments(Request request)
Obtain feedback documents for the specified query requestvoid
setIndex(Index index)
Set the index to be used
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
metaIndex
protected MetaIndex metaIndex
-
queryidRelDocumentMap
protected gnu.trove.THashMap<java.lang.String,java.util.List<org.terrier.querying.RelevanceFeedbackSelector.FeedbackWithDocno>> queryidRelDocumentMap
-
-
Method Detail
-
setIndex
public void setIndex(Index index)
Set the index to be used- Overrides:
setIndex
in classFeedbackSelector
-
getFeedbackDocuments
public FeedbackDocument[] getFeedbackDocuments(Request request)
Obtain feedback documents for the specified query request- Specified by:
getFeedbackDocuments
in classFeedbackSelector
-
-