public class MRFDependenceScoreModifier extends DependenceScoreModifier
Modifier and Type | Field and Description |
---|---|
protected double |
MU |
avgDocLen, dependency, ngramLength, numTokens, phraseQTWfnid, phraseTerms, w_o, w_t, w_u
Constructor and Description |
---|
MRFDependenceScoreModifier() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
setCollectionStatistics(CollectionStatistics cs,
Index _index)
Sets the collection statistics used to score the documents (number of documents in the collection, etc)
|
calculateDependence, clone, countTrue, determineGlobalStatistics, doDependency, getName, NOR, openPostingLists, score, scoreFDSD
public boolean modifyScores(Index index, MatchingQueryTerms terms, ResultSet set)
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 void setCollectionStatistics(CollectionStatistics cs, Index _index)
setCollectionStatistics
in class DependenceScoreModifier
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow