Class PredicateTreeAnnotator

java.lang.Object
com.yahoo.search.predicate.annotator.PredicateTreeAnnotator

public class PredicateTreeAnnotator extends Object
Performs the labelling of the predicate tree. The algorithm is based on the label algorithm described in Efficiently evaluating complex boolean expressions.
Author:
bjorncs
See Also:
  • Method Details

    • createPredicateTreeAnnotations

      public static PredicateTreeAnnotations createPredicateTreeAnnotations(com.yahoo.document.predicate.Predicate predicate)
      Labels the predicate tree by constructing an interval mapping for each predicate node in the tree.
      Parameters:
      predicate - The predicate tree.
      Returns:
      Returns a result object containing the interval mapping and the min-feature value.