|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.matching.dsms.PhraseScoreModifier
public class PhraseScoreModifier
Modifies the scores of the documents which contain, or do not contain a given phrase.
Constructor Summary | |
---|---|
PhraseScoreModifier(java.util.ArrayList pTerms)
Constructs a phrase score modifier for a given set of query terms. |
|
PhraseScoreModifier(java.util.ArrayList pTerms,
boolean r)
Constructs a phrase score modifier for a given set of query terms. |
|
PhraseScoreModifier(java.util.ArrayList pTerms,
boolean r,
int bDist)
Constructs a phrase score modifier for a given set of query terms, whether they are required to appear in a document, and the allowed distance between the phrase terms. |
|
PhraseScoreModifier(java.util.ArrayList pTerms,
int bDist)
Constructs a phrase score modifier for a given set of query terms and the allowed distance between them. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones this DSM. |
java.lang.String |
getName()
Returns the name of the modifier. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhraseScoreModifier(java.util.ArrayList pTerms)
pTerms
- ArrayList the terms that make up the query.public PhraseScoreModifier(java.util.ArrayList pTerms, int bDist)
pTerms
- ArrayList the terms that make up the query.bDist
- int the allowed distance between phrase terms.public PhraseScoreModifier(java.util.ArrayList pTerms, boolean r)
pTerms
- ArrayList the terms that make up the query.r
- boolean indicates whether the phrase is required.public PhraseScoreModifier(java.util.ArrayList pTerms, boolean r, int bDist)
pTerms
- ArrayList the terms that make up the query.r
- boolean indicates whether the phrase is required.bDist
- int the allowed distance between the phrase terms.Method Detail |
---|
public java.lang.String getName()
getName
in interface DocumentScoreModifier
public java.lang.Object clone()
clone
in interface DocumentScoreModifier
clone
in class java.lang.Object
public boolean modifyScores(Index index, MatchingQueryTerms terms, ResultSet set)
modifyScores
in interface DocumentScoreModifier
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.
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |