org.terrier.matching.tsms
Interface TermScoreModifier

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

Deprecated. Use WeightingModel instead.

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.

Author:
Vassilis Plachouras, Craig Macdonald

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

Method Detail

modifyScores

int modifyScores(double[] termScores,
                 int[][] pointers)
Deprecated. 
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()
Deprecated. 
Returns the name of the modifier.

Returns:
String the name of the modifier.

clone

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


hashCode

int hashCode()
Deprecated. 
Returns a hash code of this object

Overrides:
hashCode in class java.lang.Object


Terrier 3.5. Copyright © 2004-2011 University of Glasgow