Terrier IR Platform
1.1.1

uk.ac.gla.terrier.matching.tsms
Interface TermScoreModifier

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
FieldScoreModifier, RequiredTermModifier, TermInFieldModifier

public interface TermScoreModifier
extends java.lang.Cloneable

The interface that should be implemented by each class that assigns or modifies a score of a term for a document.

Version:
$Revision: 1.9 $
Author:
Vassilis Plachouras, Craig Macdonald

Method Summary
 java.lang.Object clone()
          Return a clone of this object (deep copy).
 java.lang.String getName()
          Returns the name of the modifier.
 int hashCode()
           
 int modifyScores(double[] termScores, int[][] pointers)
          Modifies the scores of the documents for a given set of pointers, or postings.
 

Method Detail

modifyScores

int modifyScores(double[] termScores,
                 int[][] pointers)
Modifies the scores of the documents for a given set of pointers, or postings.

Parameters:
termScores - double[] the scores of the documents.
pointers - int[][] the vectors that contain the pointers, that is pairs of document identifiers and term frequencies.
Returns:
the number of documents for which the scores were modified.

getName

java.lang.String getName()
Returns the name of the modifier.

Returns:
String the name of the modifier.

clone

java.lang.Object clone()
Return a clone of this object (deep copy).


hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow