Package org.terrier.matching
Class FatScoringMatching
- java.lang.Object
-
- org.terrier.matching.FilterMatching
-
- org.terrier.matching.AbstractScoringMatching
-
- org.terrier.matching.FatScoringMatching
-
- All Implemented Interfaces:
Matching
public class FatScoringMatching extends AbstractScoringMatching
Scores a FatResultSet into a normal ResultSet for a given weighting model- Since:
- 4.0
- Author:
- Craig Macdonald
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloggerprotected static booleanSCORE_ONLY_FROM_MQT-
Fields inherited from class org.terrier.matching.AbstractScoringMatching
documentModifiers, dsmNamespace, filterTerm, index, sort, wm
-
Fields inherited from class org.terrier.matching.FilterMatching
parent
-
-
Constructor Summary
Constructors Constructor Description FatScoringMatching(Index _index, Matching _parent)FatScoringMatching(Index _index, Matching _parent, WeightingModel _wm)FatScoringMatching(Index _index, Matching _parent, WeightingModel _wm, java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,java.util.Set<java.lang.String>>> _filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static booleancontainsFieldPostings(WritablePosting[][] postings)ResultSetdoMatch(java.lang.String queryNumber, MatchingQueryTerms queryTerms, ResultSet inputRS, boolean keepInputScores)java.lang.StringgetInfo()Return a human readable description of this Matching classResultSetmatch(java.lang.String queryNumber, MatchingQueryTerms queryTerms)Get a ResultSet for the given query terms.voidsetCollectionStatistics(CollectionStatistics cs)Update the collection statistics being used by this matching instance-
Methods inherited from class org.terrier.matching.FilterMatching
doMatch
-
-
-
-
Constructor Detail
-
FatScoringMatching
public FatScoringMatching(Index _index, Matching _parent, WeightingModel _wm, java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,java.util.Set<java.lang.String>>> _filter)
-
FatScoringMatching
public FatScoringMatching(Index _index, Matching _parent, WeightingModel _wm)
-
-
Method Detail
-
getInfo
public java.lang.String getInfo()
Description copied from interface:MatchingReturn a human readable description of this Matching class
-
containsFieldPostings
protected static boolean containsFieldPostings(WritablePosting[][] postings)
-
doMatch
public ResultSet doMatch(java.lang.String queryNumber, MatchingQueryTerms queryTerms, ResultSet inputRS, boolean keepInputScores) throws java.io.IOException
- Specified by:
doMatchin classFilterMatching- Throws:
java.io.IOException
-
match
public ResultSet match(java.lang.String queryNumber, MatchingQueryTerms queryTerms) throws java.io.IOException
Description copied from interface:MatchingGet a ResultSet for the given query terms.- Specified by:
matchin interfaceMatching- Overrides:
matchin classFilterMatching- Parameters:
queryNumber- - some ID of the queryqueryTerms- - query terms to match- Returns:
- ResultSet - the matched results
- Throws:
java.io.IOException- if a problem occurs during matching
-
setCollectionStatistics
public void setCollectionStatistics(CollectionStatistics cs)
Description copied from interface:MatchingUpdate the collection statistics being used by this matching instance- Parameters:
cs- CollectionStatistics to use during matching
-
-