public abstract class LearnedModelMatching extends Object implements Matching
FeaturedResultSet.| Modifier and Type | Field and Description | 
|---|---|
| protected int | increment | 
| protected org.slf4j.Logger | logger | 
| protected Matching | parent | 
| protected boolean | score_is_feature | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | LearnedModelMatching(Index _index,
                    Matching _parent) | 
| protected  | LearnedModelMatching(Matching _parent) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | applyModel(int N,
          double[] in_scores,
          int F,
          double[][] features,
          double[] out_scores)Apply the loaded learned model for identifying the top N documents. | 
| String | getInfo()Return a human readable description of this Matching class | 
| 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 | 
protected final Matching parent
protected org.slf4j.Logger logger
protected final boolean score_is_feature
protected final int increment
protected LearnedModelMatching(Matching _parent)
protected abstract void applyModel(int N,
              double[] in_scores,
              int F,
              double[][] features,
              double[] out_scores)
N - - number of documentsin_scores - - sample scoresF - number of featuresfeatures - indexed by feature THEN documentout_scores - - final scorespublic ResultSet match(String queryNumber, MatchingQueryTerms queryTerms) throws IOException
Matchingmatch in interface MatchingqueryNumber - - some ID of the queryqueryTerms - - query terms to matchIOException - if a problem occurs during matchingpublic void setCollectionStatistics(CollectionStatistics cs)
MatchingsetCollectionStatistics in interface Matchingcs - CollectionStatistics to use during matchingTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow