Package org.terrier.querying
Class RelevantOnlyFeedbackDocuments
- java.lang.Object
-
- org.terrier.querying.FeedbackSelector
-
- org.terrier.querying.RelevantOnlyFeedbackDocuments
-
public class RelevantOnlyFeedbackDocuments extends FeedbackSelector
Select only feedback documents which have relevance > 0- Since:
- 3.0
- Author:
- Craig Macdonald
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
protected FeedbackSelector
parent
-
Fields inherited from class org.terrier.querying.FeedbackSelector
index
-
-
Constructor Summary
Constructors Constructor Description RelevantOnlyFeedbackDocuments(FeedbackSelector _parent)
Constructs an instance of RelevantOnlyFeedbackDocuments.
-
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
-
parent
protected final FeedbackSelector parent
-
-
Constructor Detail
-
RelevantOnlyFeedbackDocuments
public RelevantOnlyFeedbackDocuments(FeedbackSelector _parent)
Constructs an instance of RelevantOnlyFeedbackDocuments.- Parameters:
_parent
-
-
-
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
-
-