Package org.terrier.matching
Interface Matching
-
- All Known Implementing Classes:
AbstractScoringMatching
,BaseMatching
,FatFeaturedScoringMatching
,FatFull
,FatResultsMatching
,FatScoringMatching
,FeaturedScoringMatching
,FilterMatching
,Full
,Full
,JforestsModelMatching
,LearnedModelMatching
,LinearModelMatching
,ScoringMatching
,ScoringMatchingWithFat
,TRECResultsMatching
public interface Matching
Interface for all Matching implementations.- Since:
- 3.0
- Author:
- Vassilis Plachouras, Craig Macdonald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getInfo()
Return a human readable description of this Matching classResultSet
match(java.lang.String queryNumber, MatchingQueryTerms queryTerms)
Get a ResultSet for the given query terms.void
setCollectionStatistics(CollectionStatistics cs)
Update the collection statistics being used by this matching instance
-
-
-
Method Detail
-
getInfo
java.lang.String getInfo()
Return a human readable description of this Matching class
-
match
ResultSet match(java.lang.String queryNumber, MatchingQueryTerms queryTerms) throws java.io.IOException
Get a ResultSet for the given query terms.- 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
void setCollectionStatistics(CollectionStatistics cs)
Update the collection statistics being used by this matching instance- Parameters:
cs
- CollectionStatistics to use during matching
-
-