edu.washington.cs.knowitall.rule.confidence
Class PrecisionRecallConfidenceFunction

java.lang.Object
  extended by edu.washington.cs.knowitall.rule.confidence.ConfidenceFunction<PrecisionRecallScore>
      extended by edu.washington.cs.knowitall.rule.confidence.PrecisionRecallConfidenceFunction
All Implemented Interfaces:
com.google.common.base.Function<Rule,PrecisionRecallScore>
Direct Known Subclasses:
MRConfidenceFunction

public class PrecisionRecallConfidenceFunction
extends ConfidenceFunction<PrecisionRecallScore>

A simple confidence function that computes the percentage of resulting ontological relations a rule creates that match an annotation.

Author:
schmmd

Field Summary
protected  double minRecall
           
 
Fields inherited from class edu.washington.cs.knowitall.rule.confidence.ConfidenceFunction
annotationCount, annotations, matcher, results
 
Constructor Summary
PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds)
           
PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds, double minRecall)
           
PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds, OntologicalRelationMatcher matcher)
           
PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds, OntologicalRelationMatcher matcher, double minRecall)
           
 
Method Summary
 PrecisionRecallScore apply(Iterable<Rule> rules, int size)
           
 PrecisionRecallScore apply(Rule rule)
           
protected  PrecisionRecallScore createScore(double correct, double error, int annotationCount, int size)
           
 
Methods inherited from class edu.washington.cs.knowitall.rule.confidence.ConfidenceFunction
apply, apply, createRank, match, numberAnnotationsCorrect, reduce, relations, relations, results, results, setResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

minRecall

protected final double minRecall
Constructor Detail

PrecisionRecallConfidenceFunction

public PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds,
                                         OntologicalRelationMatcher matcher,
                                         double minRecall)

PrecisionRecallConfidenceFunction

public PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds)

PrecisionRecallConfidenceFunction

public PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds,
                                         OntologicalRelationMatcher matcher)

PrecisionRecallConfidenceFunction

public PrecisionRecallConfidenceFunction(List<AnnotatedSentence> annotateds,
                                         double minRecall)
Method Detail

apply

public PrecisionRecallScore apply(Rule rule)
Specified by:
apply in interface com.google.common.base.Function<Rule,PrecisionRecallScore>
Specified by:
apply in class ConfidenceFunction<PrecisionRecallScore>

apply

public PrecisionRecallScore apply(Iterable<Rule> rules,
                                  int size)
Overrides:
apply in class ConfidenceFunction<PrecisionRecallScore>

createScore

protected PrecisionRecallScore createScore(double correct,
                                           double error,
                                           int annotationCount,
                                           int size)


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