public class CooccurrencesEvaluationAnnotator
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Cooccurrence's entities are the same. Any entities
can be used, since they are compared on start/end of them.EvaluationAnnotator}| Constructor and Description |
|---|
CooccurrencesEvaluationAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areTheSame(Cooccurrence gold,
Cooccurrence system) |
void |
collectionProcessComplete() |
static Comparator<Cooccurrence> |
comp() |
static boolean |
contains(Collection<Cooccurrence> haystack,
Cooccurrence needle) |
static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> |
getEvaluator() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.fit.component.JCasAnnotator_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas jCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic void collectionProcessComplete()
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete in interface org.apache.uima.analysis_component.AnalysisComponentcollectionProcessComplete in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic static <A extends org.apache.uima.jcas.tcas.Annotation,B extends org.apache.uima.jcas.tcas.Annotation> TestEvaluator<A,B> getEvaluator()
public static boolean areTheSame(Cooccurrence gold, Cooccurrence system)
Cooccurrence.getFirstEntity() and
Cooccurrence.getSecondEntity() have same begin/end in
gold and systempublic static Comparator<Cooccurrence> comp()
public static boolean contains(Collection<Cooccurrence> haystack, Cooccurrence needle)
Copyright © 2015 Bluebrain Project. All rights reserved.