| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.matching.dsms.DependenceScoreModifier
org.terrier.matching.dsms.DFRDependenceScoreModifier
public class DFRDependenceScoreModifier
Implements the pBiL and pBil2 DFR-based dependence models. For more information, see Incorporating Term Dependency in the DFR Framework. Jie Peng, Craig Macdonald, Ben He, Vassilis Plachouras, Iadh Ounis. In Proceedings of SIGIR 2007. July 2007. Amsterdam, the Netherlands. 2007.
Properties
DependenceScoreModifier
| Field Summary | |
|---|---|
protected static GammaFunction | 
gf
 | 
protected  double | 
ngramC
 | 
protected  boolean | 
norm2
whether to apply Normalisation 2  | 
protected static double | 
REC_LOG_2
 | 
| Fields inherited from class org.terrier.matching.dsms.DependenceScoreModifier | 
|---|
avgDocLen, dependency, ngramLength, numTokens, phraseQTWfnid, phraseTerms, w_o, w_t, w_u | 
| Constructor Summary | |
|---|---|
DFRDependenceScoreModifier()
Constructs an instance of DFRDependenceScoreModifier.  | 
|
DFRDependenceScoreModifier(java.lang.String[] pTerms)
Constructs an instance of DFRDependenceScoreModifier.  | 
|
DFRDependenceScoreModifier(java.lang.String[] pTerms,
                           boolean r)
Constructs an instance of DFRDependenceScoreModifier.  | 
|
| Method Summary | |
|---|---|
static void | 
main(java.lang.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)
 | 
| Methods inherited from class org.terrier.matching.dsms.DependenceScoreModifier | 
|---|
clone, countTrue, determineGlobalStatistics, doDependency, getName, NOR, score, scoreFDSD, setCollectionStatistics | 
| Methods inherited from class java.lang.Object | 
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final double REC_LOG_2
protected static final GammaFunction gf
protected boolean norm2
protected double ngramC
| Constructor Detail | 
|---|
public DFRDependenceScoreModifier()
public DFRDependenceScoreModifier(java.lang.String[] pTerms)
pTerms - 
public DFRDependenceScoreModifier(java.lang.String[] pTerms,
                                  boolean r)
pTerms - r - | Method Detail | 
|---|
public boolean modifyScores(Index index,
                            MatchingQueryTerms terms,
                            ResultSet set)
DependenceScoreModifier
modifyScores in interface DocumentScoreModifiermodifyScores in class DependenceScoreModifierindex - 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 DependenceScoreModifierpublic static void main(java.lang.String[] args)
args - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||