Package org.terrier.querying
Class RelevanceFeedbackSelectorDocids
- java.lang.Object
-
- org.terrier.querying.FeedbackSelector
-
- org.terrier.querying.RelevanceFeedbackSelectorDocids
-
public class RelevanceFeedbackSelectorDocids extends FeedbackSelector
A feedback document selector that operates as RelevanceFeedbackSelector, except that this should be used when docids are specified in the qrels file, not docnos.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 DocumentIndex
doi
protected static org.slf4j.Logger
logger
protected gnu.trove.THashMap<java.lang.String,gnu.trove.TIntByteHashMap>
queryidRelDocumentMap
-
Fields inherited from class org.terrier.querying.FeedbackSelector
index
-
-
Constructor Summary
Constructors Constructor Description RelevanceFeedbackSelectorDocids()
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
-
doi
protected DocumentIndex doi
-
queryidRelDocumentMap
protected gnu.trove.THashMap<java.lang.String,gnu.trove.TIntByteHashMap> 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
-
-