edu.washington.cs.knowitall.rule.confidence
Class ConfidenceFunction<E extends Comparable<E>>
java.lang.Object
edu.washington.cs.knowitall.rule.confidence.ConfidenceFunction<E>
- All Implemented Interfaces:
- com.google.common.base.Function<Rule,E>
- Direct Known Subclasses:
- FnConfidenceFunction, PrecisionRecallConfidenceFunction
public abstract class ConfidenceFunction<E extends Comparable<E>>
- extends Object
- implements com.google.common.base.Function<Rule,E>
| 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 |
matcher
protected final OntologicalRelationMatcher matcher
annotations
public final com.google.common.collect.ImmutableList<AnnotatedSentence> annotations
annotationCount
protected final int annotationCount
results
protected Map<Rule,Results> results
- Used for improving the speed of computations.
ConfidenceFunction
public ConfidenceFunction(List<AnnotatedSentence> annotations,
OntologicalRelationMatcher matcher)
ConfidenceFunction
public ConfidenceFunction(List<AnnotatedSentence> annotations)
setResults
public void setResults(Map<Rule,Results> results)
numberAnnotationsCorrect
public int numberAnnotationsCorrect(Rule rule)
apply
public abstract E apply(Rule rule)
- Specified by:
apply in interface com.google.common.base.Function<Rule,E extends Comparable<E>>
apply
public E apply(Collection<Rule> rules)
apply
public E apply(Iterable<Rule> rules,
int size)
apply
public double apply(OntologicalRelation relation)
match
public OntologicalRelation match(OntologicalRelation mappedRelation)
relations
public Set<OntologicalRelation> relations(Iterable<Rule> rules)
relations
public void relations(Rule rule,
Set<OntologicalRelation> correct,
Set<OntologicalRelation> error)
createRank
public Rank<E> createRank(Rule rule)
results
public Results results(Rule rule)
results
public Map<Rule,Results> results(Iterable<Rule> rules)
reduce
public Iterable<Rank<E>> reduce(Iterable<Rank<E>> ranks,
Map<Rule,Results> results)
Copyright © 2011 University of Washington CSE. All Rights Reserved.