public class FatFeaturedScoringMatching extends Object implements Matching
FeaturedResultSet
by applying a list of features. The input from a parent matching class is a FatResultSet
.
Feature names have a particular format:
Matching
class becomes a feature.Constructor and Description |
---|
FatFeaturedScoringMatching(Index _index,
Matching _parent) |
FatFeaturedScoringMatching(Index _index,
Matching _parent,
String[] _featureNames) |
Modifier and Type | Method and Description |
---|---|
ResultSet |
doMatch(String queryNumber,
MatchingQueryTerms queryTerms,
FatResultSet fat) |
String |
getInfo()
Return a human readable description of this Matching class
|
protected void |
loadFeatures(String[] featureNames) |
ResultSet |
match(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
|
public FatFeaturedScoringMatching(Index _index, Matching _parent, String[] _featureNames) throws Exception
Exception
public String getInfo()
Matching
public ResultSet doMatch(String queryNumber, MatchingQueryTerms queryTerms, FatResultSet fat) throws IOException
IOException
public ResultSet match(String queryNumber, MatchingQueryTerms queryTerms) throws IOException
Matching
match
in interface Matching
queryNumber
- - some ID of the queryqueryTerms
- - query terms to matchIOException
- if a problem occurs during matchingpublic void setCollectionStatistics(CollectionStatistics cs)
Matching
setCollectionStatistics
in interface Matching
cs
- CollectionStatistics to use during matchingTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow