Terrier IR Platform
2.2.1

uk.ac.gla.terrier.matching.dsms
Class BlockScoreModifier

java.lang.Object
  extended by uk.ac.gla.terrier.matching.dsms.BlockScoreModifier
All Implemented Interfaces:
java.lang.Cloneable, DocumentScoreModifier

public class BlockScoreModifier
extends java.lang.Object
implements DocumentScoreModifier

This class modifers the scores of documents based on the position of the query terms in the document. This class implements the DocumentScoreModifier interface.

Version:
$Revision: 1.18 $.
Author:
Douglas Johnson, Vassilis Plachouras

Constructor Summary
BlockScoreModifier()
           
 
Method Summary
 java.lang.Object clone()
           
 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockScoreModifier

public BlockScoreModifier()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: DocumentScoreModifier
Returns the name of the document score modifier.

Specified by:
getName in interface DocumentScoreModifier
Returns:
String the name of the document score modifier.

modifyScores

public boolean modifyScores(Index index,
                            MatchingQueryTerms query,
                            ResultSet resultSet)
Modifies scores by applying proximity weighting.

Specified by:
modifyScores in interface DocumentScoreModifier
Parameters:
index - Index the data structures used for retrieval.
query - TermTreeNodes[] the query terms
resultSet - ResultSet the current set of results.
Returns:
true if any scores have been altered

clone

public java.lang.Object clone()
Specified by:
clone in interface DocumentScoreModifier
Overrides:
clone in class java.lang.Object

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow