Interface TermScoreModifier

  • All Superinterfaces:
    java.lang.Cloneable

    public interface TermScoreModifier
    extends java.lang.Cloneable
    Deprecated.
    Use WeightingModel instead.
    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

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      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