edu.washington.cs.knowitall.rule.learn
Class SimpleMaximizingRuleSetOptimizer<E extends Comparable<E>>

java.lang.Object
  extended by edu.washington.cs.knowitall.rule.learn.Learner<E>
      extended by edu.washington.cs.knowitall.rule.learn.RuleSetOptimizer<E>
          extended by edu.washington.cs.knowitall.rule.learn.SimpleMaximizingRuleSetOptimizer<E>

public class SimpleMaximizingRuleSetOptimizer<E extends Comparable<E>>
extends RuleSetOptimizer<E>

Rule learning framework for mapping extractions onto an ontology. Annotations of rule instances are supplied, as well as corresponding extractions. For each annotation, a base rule is created by making a maximally constrained rule that results in the ontological relation given the extraction. Then the base rule is generalized using a search algorithm, by default beam search. A list of generalized rules are returned. There may be more than one value in the case of a tie.

Author:
schmmd

Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.rule.learn.Learner
baseRuleFactory, confidenceFunction, validator
 
Constructor Summary
SimpleMaximizingRuleSetOptimizer(BaseRuleFactory factory, RuleValidator validator, ConfidenceFunction<E> confidence)
           
 
Method Summary
 Set<Set<Rule>> optimize(Collection<Set<Rule>> rules, E score)
           
 Collection<Rule> optimize(Iterable<Rule> rulesIterable)
           
 
Methods inherited from class edu.washington.cs.knowitall.rule.learn.RuleSetOptimizer
printCorrect, printError
 
Methods inherited from class edu.washington.cs.knowitall.rule.learn.Learner
generalize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMaximizingRuleSetOptimizer

public SimpleMaximizingRuleSetOptimizer(BaseRuleFactory factory,
                                        RuleValidator validator,
                                        ConfidenceFunction<E> confidence)
Method Detail

optimize

public Collection<Rule> optimize(Iterable<Rule> rulesIterable)
Specified by:
optimize in class RuleSetOptimizer<E extends Comparable<E>>

optimize

public Set<Set<Rule>> optimize(Collection<Set<Rule>> rules,
                               E score)


Copyright © 2011 University of Washington CSE. All Rights Reserved.