|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.terrier.matching.dsms.BlockScoreModifier
public class BlockScoreModifier
This class modifers the scores of documents based on the position of the query terms in the document. This class implements the DocumentScoreModifier interface.
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
BlockScoreModifier()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates the close of this object |
protected java.util.ArrayList<java.lang.String[]> |
generateQueryTermPairs(MatchingQueryTerms query)
Generates all possible query term pairs |
java.lang.String |
getName()
Returns the name of the document score modifier. |
boolean |
modifyScores(Index index,
MatchingQueryTerms query,
ResultSet resultSet)
Modifies scores by applying proximity weighting. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
Constructor Detail |
---|
public BlockScoreModifier()
Method Detail |
---|
public java.lang.String getName()
getName
in interface DocumentScoreModifier
public boolean modifyScores(Index index, MatchingQueryTerms query, ResultSet resultSet)
modifyScores
in interface DocumentScoreModifier
index
- Index the data structures used for retrieval.query
- TermTreeNodes[] the query termsresultSet
- ResultSet the current set of results.
protected java.util.ArrayList<java.lang.String[]> generateQueryTermPairs(MatchingQueryTerms query)
query
- the query to generate term pairs frompublic java.lang.Object clone()
clone
in interface DocumentScoreModifier
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |