Class AxiomaticF2LOG


  • public class AxiomaticF2LOG
    extends Axiomatic
    F2EXP is defined as Sum(tfln(term_doc_freq, docLen)*IDF(term)) where IDF(t) = ln((N+1)/df(t)) N=total num of docs, df=doc freq
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • AxiomaticF2LOG

        public AxiomaticF2LOG​(float s)
        Constructor setting s only, letting k and queryLen to default
        Parameters:
        s - hyperparam for the growth function
      • AxiomaticF2LOG

        public AxiomaticF2LOG()
        Default constructor
    • Method Detail

      • tf

        protected float tf​(BasicStats stats,
                           float freq,
                           float docLen)
        compute the term frequency component
        Specified by:
        tf in class Axiomatic
      • ln

        protected float ln​(BasicStats stats,
                           float freq,
                           float docLen)
        compute the document length component
        Specified by:
        ln in class Axiomatic
      • tfln

        protected float tfln​(BasicStats stats,
                             float freq,
                             float docLen)
        compute the mixed term frequency and document length component
        Specified by:
        tfln in class Axiomatic
      • idf

        protected float idf​(BasicStats stats,
                            float freq,
                            float docLen)
        compute the inverted document frequency component
        Specified by:
        idf in class Axiomatic
      • gamma

        protected float gamma​(BasicStats stats,
                              float freq,
                              float docLen)
        compute the gamma component
        Specified by:
        gamma in class Axiomatic