Class MRF

    • Constructor Detail

      • MRF

        public MRF()
      • MRF

        public MRF​(int _ngramLength)
    • Method Detail

      • getInfo

        public java.lang.String getInfo()
        Description copied from class: WeightingModel
        Returns the name of the model.
        Specified by:
        getInfo in interface Model
        Specified by:
        getInfo in class WeightingModel
        Returns:
        java.lang.String
      • score

        public double score​(double matchingNGrams,
                            double _docLength)
        Description copied from class: WeightingModel
        This method provides the contract for implementing weighting models.
        Specified by:
        score in class WeightingModel
        Parameters:
        matchingNGrams - The term frequency 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