Package org.terrier.matching.models
Class StaticFeature
- java.lang.Object
-
- org.terrier.matching.models.WeightingModel
-
- org.terrier.matching.models.StaticScoreModifierWeightingModel
-
- org.terrier.matching.models.StaticFeature
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Model
public class StaticFeature extends StaticScoreModifierWeightingModel
Class for query independent features loaded from file. SeeStaticScoreModifierWeightingModelfor supported input file formats.- Since:
- 4.0
- Author:
- Craig Macdonald
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.terrier.matching.models.StaticScoreModifierWeightingModel
asFloat, FstaticMap, FstaticScores, map, source, staticMap, staticScores
-
Fields inherited from class org.terrier.matching.models.WeightingModel
averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfPostings, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
-
-
Constructor Summary
Constructors Constructor Description StaticFeature(double[] scores)StaticFeature(gnu.trove.TIntDoubleHashMap scores)StaticFeature(java.lang.String[] params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublescore(Posting p)Returns score-
Methods inherited from class org.terrier.matching.models.StaticScoreModifierWeightingModel
castToDoubleArr, castToDoubleArr, castToFloatArr, castToFloatArr, getInfo, getScoreD, getScoreF, getSource, loadDocid2score, loadfloatOOS, loadOOS, loadScorefile, max, min, printStats, score, standardNormalisation
-
Methods inherited from class org.terrier.matching.models.WeightingModel
clone, getOverflowed, getParameter, prepare, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequest
-
-
-
-
Method Detail
-
score
public double score(Posting p)
Description copied from class:WeightingModelReturns score- Specified by:
scorein classStaticScoreModifierWeightingModel- Returns:
- score
-
-