Class ElementCompleteness


  • public class ElementCompleteness
    extends java.lang.Object
    Calculates the elementCompleteness features
    Author:
    bratseth
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Features compute​(java.util.Map<java.lang.String,​java.lang.Integer> queryTerms, ElementCompleteness.Item[] field)
      Computes the following elementCompleteness features: completeness fieldCompleteness queryCompleteness elementWeight
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElementCompleteness

        public ElementCompleteness()
    • Method Detail

      • compute

        public static Features compute​(java.util.Map<java.lang.String,​java.lang.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