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

java.lang.Object
  extended by edu.washington.cs.knowitall.rule.confidence.ConfidenceFunction<SimpleScore>
      extended by edu.washington.cs.knowitall.rule.confidence.FnConfidenceFunction
All Implemented Interfaces:
com.google.common.base.Function<Rule,SimpleScore>

public class FnConfidenceFunction
extends ConfidenceFunction<SimpleScore>

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

Author:
schmmd

Field Summary
 double beta
           
 
Fields inherited from class edu.washington.cs.knowitall.rule.confidence.ConfidenceFunction
annotationCount, annotations, matcher, results
 
Constructor Summary
FnConfidenceFunction(List<AnnotatedSentence> annotateds, double beta)
           
FnConfidenceFunction(List<AnnotatedSentence> annotateds, OntologicalRelationMatcher matcher, double beta)
           
 
Method Summary
 SimpleScore apply(Iterable<Rule> rules, int size)
           
 SimpleScore apply(Rule rule)
           
protected  SimpleScore createScore(PrecisionRecallScore prScore, 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

beta

public final double beta
Constructor Detail

FnConfidenceFunction

public FnConfidenceFunction(List<AnnotatedSentence> annotateds,
                            OntologicalRelationMatcher matcher,
                            double beta)

FnConfidenceFunction

public FnConfidenceFunction(List<AnnotatedSentence> annotateds,
                            double beta)
Method Detail

apply

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

apply

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

createScore

protected SimpleScore createScore(PrecisionRecallScore prScore,
                                  int size)


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