public class DFRDependenceScoreModifier extends DependenceScoreModifier
Properties
DependenceScoreModifier
Modifier and Type | Field and Description |
---|---|
protected static GammaFunction |
gf |
protected double |
ngramC |
protected boolean |
norm2
whether to apply Normalisation 2
|
protected static double |
REC_LOG_2 |
avgDocLen, dependency, ngramLength, numTokens, phraseQTWfnid, phraseTerms, w_o, w_t, w_u
Constructor and Description |
---|
DFRDependenceScoreModifier()
Constructs an instance of DFRDependenceScoreModifier.
|
DFRDependenceScoreModifier(String[] pTerms)
Constructs an instance of DFRDependenceScoreModifier.
|
DFRDependenceScoreModifier(String[] pTerms,
boolean r)
Constructs an instance of DFRDependenceScoreModifier.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
main
|
boolean |
modifyScores(Index index,
MatchingQueryTerms terms,
ResultSet set)
Modifies the scores of documents, in which there exist, or there does not
exist a given phrase.
|
protected double |
scoreFDSD(int matchingNGrams,
int docLength) |
clone, countTrue, determineGlobalStatistics, doDependency, getName, NOR, openPostingLists, score, scoreFDSD, setCollectionStatistics
protected static final double REC_LOG_2
protected static final GammaFunction gf
protected boolean norm2
protected double ngramC
public DFRDependenceScoreModifier()
public DFRDependenceScoreModifier(String[] pTerms)
pTerms
- public DFRDependenceScoreModifier(String[] pTerms, boolean r)
pTerms
- r
- public boolean modifyScores(Index index, MatchingQueryTerms terms, ResultSet set)
DependenceScoreModifier
modifyScores
in interface DocumentScoreModifier
modifyScores
in class DependenceScoreModifier
index
- Index the data structures to use.terms
- MatchingQueryTerms the terms to be matched for the query. This
does not correspond to the phrase terms necessarily, but to
all the terms of the query.set
- ResultSet the result set for the query.protected double scoreFDSD(int matchingNGrams, int docLength)
scoreFDSD
in class DependenceScoreModifier
public static void main(String[] args)
args
- Terrier 4.0. Copyright © 2004-2014 University of Glasgow