public class StaticFeature extends StaticScoreModifierWeightingModel
StaticScoreModifierWeightingModel
for supported
input file formats.averageDocumentLength, c, cs, documentFrequency, es, i, keyFrequency, numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms, rq, termFrequency
Constructor and Description |
---|
StaticFeature(double[] scores) |
StaticFeature(String[] params) |
StaticFeature(gnu.trove.TIntDoubleHashMap scores) |
Modifier and Type | Method and Description |
---|---|
double |
score(Posting p)
Returns score
|
castToDoubleArr, castToDoubleArr, castToFloatArr, castToFloatArr, getInfo, getScoreD, getScoreF, getSource, loadDocid2score, loadfloatOOS, loadOOS, loadScorefile, max, min, printStats, score, score, standardNormalisation
clone, getOverflowed, getParameter, prepare, setCollectionStatistics, setEntryStatistics, setKeyFrequency, setParameter, setRequest
public StaticFeature(String[] params)
public StaticFeature(double[] scores)
public StaticFeature(gnu.trove.TIntDoubleHashMap scores)
public double score(Posting p)
WeightingModel
score
in class StaticScoreModifierWeightingModel
Terrier 4.0. Copyright © 2004-2014 University of Glasgow