@PipeBitInfo(name="Gold Stats Calculator", description="Count various stats such as token and relation counts based on the gold standard data.", role=SPECIAL, dependencies={SENTENCE,BASE_TOKEN,IDENTIFIED_ANNOTATION,GENERIC_RELATION,LOCATION_RELATION,DEGREE_RELATION}) public class GoldAnnotationStatsCalculator extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
| Modifier and Type | Field and Description |
|---|---|
int |
entityMentionCount |
int |
entityMentionPairCount |
com.google.common.collect.Multiset<String> |
entityMentionPairTypes |
static String |
goldViewName |
int |
relationArgumentDistance |
com.google.common.collect.Multiset<String> |
relationTypes |
int |
sentenceCount |
static String |
systemViewName |
static String |
targetRelationType |
int |
tokenCount |
| Constructor and Description |
|---|
GoldAnnotationStatsCalculator() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete() |
static int |
getTokenDistance(org.apache.uima.jcas.JCas systemView,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String goldViewName
public static final String systemViewName
public static final String targetRelationType
public int tokenCount
public int sentenceCount
public int entityMentionCount
public int entityMentionPairCount
public int relationArgumentDistance
public com.google.common.collect.Multiset<String> relationTypes
public com.google.common.collect.Multiset<String> entityMentionPairTypes
public 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 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 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 static int getTokenDistance(org.apache.uima.jcas.JCas systemView,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.