Class ML2

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

    public class ML2
    extends WeightingModel
    This class implements the ML2 field-based weighting model.

    Properties

    :
    • c.0, c.1, etc. Normalisation parameter for each field.
    • p.0, p.1, etc. Prior weight adjustments for each field. In the original paper, all of these were left at the default value of 1.0d.

    If you use this model, please cite V. Plachouras and I. Ounis, Multinomial Randomness Models for Retrieval with Document Fields, In Proc. ECIR 2007.

    Since:
    3.0
    Author:
    Vassilis Plachouras and Craig Macdonald
    See Also:
    Serialized Form
    • Field Detail

      • fieldCount

        protected int fieldCount
      • fieldWeights

        protected double[] fieldWeights
      • p

        protected double[] p
      • fieldTermFrequencies

        protected int[] fieldTermFrequencies
    • Constructor Detail

      • ML2

        public ML2​(java.lang.String[] parameters)
            throws java.lang.Exception
        Constructs an instance of ML2
        Parameters:
        parameters -
        Throws:
        java.lang.Exception
      • ML2

        public ML2()