Class DFReeKLIM

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Model

    public class DFReeKLIM
    extends WeightingModel
    This class implements the DFReeKLIM weighting model. DFReeKLIM stands for a DFR model free from parameters. DFReeKLIM is the inner product of two KL Information Measures. Appeared in the paper: FUB, IASI-CNR, UNIVAQ at Microblogging Track of TREC 2011 G. Amati, G. Amodeo, M. Bianchi, G. Marcone, Fondazione Ugo Bordoni G.Amodeo, C. Gaibisso, G. Gambosi, IASI-CNR A. Celi, C. De Nicola, M. Flammini, Univ. dell' Aquila
    Since:
    4.0
    See Also:
    Serialized Form
    • Constructor Detail

      • DFReeKLIM

        public DFReeKLIM()
        A default constructor to make this model.
      • DFReeKLIM

        public DFReeKLIM​(double c)
    • Method Detail

      • getInfo

        public final java.lang.String getInfo()
        Returns the name of the model, in this case "DFReeKLIM"
        Specified by:
        getInfo in interface Model
        Specified by:
        getInfo in class WeightingModel
        Returns:
        the name of the model
      • score

        public final double score​(double tf,
                                  double docLength)
        Uses DFReeKLIM to compute a weight for a term in a document.
        Specified by:
        score in class WeightingModel
        Parameters:
        tf - The term frequency of the term in the document
        docLength - the document's length
        Returns:
        the score assigned to a document with the given tf and docLength, and other preset parameters
      • score

        public final double score​(double tf,
                                  double docLength,
                                  double documentFrequency,
                                  double termFrequency,
                                  double keyFrequency)
        Uses DFReeKLIM to compute a weight for a term in a document.
        Parameters:
        tf - The term frequency of the term in the document
        docLength - the document's length
        documentFrequency - The document frequency of the term (ignored)
        termFrequency - the term frequency in the collection (ignored)
        keyFrequency - the term frequency in the query (ignored).
        Returns:
        the score assigned by the weighting model DFReeKLIM.