public abstract class FeaturedScoringMatching extends FilterMatching
Modifier and Type | Field and Description |
---|---|
protected String[] |
dsmNames |
protected DocumentScoreModifier[] |
dsms |
static Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> |
filterOW |
static Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> |
filterProx |
static Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> |
filterTerm |
static Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> |
filterUW |
protected Index |
index |
protected static org.slf4j.Logger |
logger |
protected String[] |
qiFeatureNames |
protected WeightingModel[] |
qiFeatures |
protected boolean |
sampleFeature |
protected Class<? extends AbstractScoringMatching> |
scoringMatchingImpl |
protected String[] |
wModelNames |
protected AbstractScoringMatching[] |
wModels |
parent
Constructor and Description |
---|
FeaturedScoringMatching(Index _index,
Matching _parent,
Class<? extends AbstractScoringMatching> _scoringMatchingImpl) |
FeaturedScoringMatching(Index _index,
Matching _parent,
String[] _featureNames,
Class<? extends AbstractScoringMatching> _scoringMatchingImpl) |
Modifier and Type | Method and Description |
---|---|
protected int |
applyDSMs(Index localIndex,
String queryNumber,
MatchingQueryTerms mqtLocal,
int numResults,
int[] inputDocids,
short[] inputOccurrences,
FeaturedResultSet rtr) |
String |
getInfo()
Return a human readable description of this Matching class
|
protected static String[] |
getModelNames(String property) |
static Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> |
getTagPredictate(String matches) |
protected void |
loadFeatures(String[] featureNames) |
void |
setCollectionStatistics(CollectionStatistics cs)
Update the collection statistics being used by this matching instance
|
doMatch, match
protected static org.slf4j.Logger logger
protected Index index
protected AbstractScoringMatching[] wModels
protected String[] wModelNames
protected DocumentScoreModifier[] dsms
protected String[] dsmNames
protected WeightingModel[] qiFeatures
protected String[] qiFeatureNames
protected boolean sampleFeature
protected Class<? extends AbstractScoringMatching> scoringMatchingImpl
public static final Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> filterUW
public static final Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> filterOW
public static final Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> filterProx
public FeaturedScoringMatching(Index _index, Matching _parent, String[] _featureNames, Class<? extends AbstractScoringMatching> _scoringMatchingImpl) throws Exception
Exception
protected static String[] getModelNames(String property) throws Exception
Exception
public static final Predicate<org.apache.commons.lang3.tuple.Pair<String,Set<String>>> getTagPredictate(String matches)
protected int applyDSMs(Index localIndex, String queryNumber, MatchingQueryTerms mqtLocal, int numResults, int[] inputDocids, short[] inputOccurrences, FeaturedResultSet rtr)
public String getInfo()
Matching
public void setCollectionStatistics(CollectionStatistics cs)
Matching
cs
- CollectionStatistics to use during matchingTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow