public class TestEvaluator<T extends org.apache.uima.jcas.tcas.Annotation,U extends org.apache.uima.jcas.tcas.Annotation> extends Object
| Constructor and Description |
|---|
TestEvaluator(Comparator<T,U> comparator) |
| Modifier and Type | Method and Description |
|---|---|
String |
add(Collection<T> expecteds,
Collection<U> actuals,
String pmId) |
TestResult |
compare() |
static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> |
getAtLeastCoveredEvaluator()
'gold' is at least covered by 'system'; probably too lenient
|
static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> |
getAtLeastCoveringEvaluator()
'gold' is covering 'system'
|
Comparator<T,U> |
getComparator() |
static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> |
getExactEvaluator()
Compares the start/end on the same annotation
|
static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> |
getOverlapEvaluator() |
static <A extends org.apache.uima.jcas.tcas.Annotation> |
getSimpleEvaluator()
Compares the start/end on the same annotation.
|
public TestEvaluator(Comparator<T,U> comparator)
public Comparator<T,U> getComparator()
public String add(Collection<T> expecteds, Collection<U> actuals, String pmId)
public TestResult compare()
public static <A extends org.apache.uima.jcas.tcas.Annotation> TestEvaluator<A,A> getSimpleEvaluator()
annotation - public static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> TestEvaluator<A,B> getExactEvaluator()
public static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> TestEvaluator<A,B> getAtLeastCoveredEvaluator()
public static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> TestEvaluator<A,B> getAtLeastCoveringEvaluator()
public static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> TestEvaluator<A,B> getOverlapEvaluator()
Copyright © 2015 Bluebrain Project. All rights reserved.