Class ElementCompleteness


  • public class ElementCompleteness
    extends Object
    Calculates the elementCompleteness features
    Author:
    bratseth
    • Constructor Detail

      • ElementCompleteness

        public ElementCompleteness()
    • Method Detail

      • compute

        public static Features compute​(Map<String,​Integer> queryTerms,
                                       ElementCompleteness.Item[] field)
        Computes the following elementCompleteness features:
        • completeness
        • fieldCompleteness
        • queryCompleteness
        • elementWeight
        Parameters:
        queryTerms - the query terms with associated weights to compute over
        field - a set of weighted field values, where each is taken to be a space-separated string of tokens
        Returns:
        a features object containing the values listed above