Class IndependenceStandardized


  • public class IndependenceStandardized
    extends Independence
    Standardized measure of distance from independence

    Described as: "good at tasks that require high recall and high precision, especially against short queries composed of a few words as in the case of Internet searches"

    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • IndependenceStandardized

        public IndependenceStandardized()
        Sole constructor.
    • Method Detail

      • score

        public float score​(float freq,
                           float expected)
        Description copied from class: Independence
        Computes distance from independence
        Specified by:
        score in class Independence
        Parameters:
        freq - actual term frequency
        expected - expected term frequency