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)
|
clone, countTrue, determineGlobalStatistics, doDependency, getName, NOR, openPostingLists, score, scoreFDSDpublic boolean modifyScores(Index index, MatchingQueryTerms terms, ResultSet set)
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 void setCollectionStatistics(CollectionStatistics cs, Index _index)
setCollectionStatistics in class DependenceScoreModifierTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow