edu.washington.cs.knowitall.rule.learn
Class RuleSetOptimizer<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>
Direct Known Subclasses:
SimpleMaximizingRuleSetOptimizer

public abstract class RuleSetOptimizer<E extends Comparable<E>>
extends Learner<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
RuleSetOptimizer(BaseRuleFactory factory, RuleValidator validator, ConfidenceFunction<E> confidence)
           
 
Method Summary
abstract  Collection<Rule> optimize(Iterable<Rule> rules)
           
static void printCorrect(Iterable<OntologicalRelation> relations)
           
static void printError(Iterable<OntologicalRelation> relations)
           
 
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

RuleSetOptimizer

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

optimize

public abstract Collection<Rule> optimize(Iterable<Rule> rules)

printCorrect

public static void printCorrect(Iterable<OntologicalRelation> relations)

printError

public static void printError(Iterable<OntologicalRelation> relations)


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