org.apache.ctakes.relationextractor.data
Class GoldAnnotationStatsCalculator
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.uimafit.component.JCasAnnotator_ImplBase
org.apache.ctakes.relationextractor.data.GoldAnnotationStatsCalculator
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
public class GoldAnnotationStatsCalculator
- extends org.uimafit.component.JCasAnnotator_ImplBase
Count various stats such as token and relation counts
based on the gold standard data.
Make sure relationType constant is set to the appropriate relation ("location_of" vs. "degree_of")
to make sure the relation-specific statisitics are calculated correctly.
- Author:
- dmitriy dligach
Methods inherited from class org.uimafit.component.JCasAnnotator_ImplBase |
getLogger |
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase |
getRequiredCasInterface, process |
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase |
getCasInstancesRequired, hasNext, next |
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase |
batchProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
goldViewName
public static final String goldViewName
- See Also:
- Constant Field Values
systemViewName
public static final String systemViewName
- See Also:
- Constant Field Values
targetRelationType
public static final String targetRelationType
- See Also:
- Constant Field Values
tokenCount
public int tokenCount
sentenceCount
public int sentenceCount
entityMentionCount
public int entityMentionCount
entityMentionPairCount
public int entityMentionPairCount
relationArgumentDistance
public int relationArgumentDistance
relationTypes
public com.google.common.collect.Multiset<String> relationTypes
entityMentionPairTypes
public com.google.common.collect.Multiset<String> entityMentionPairTypes
GoldAnnotationStatsCalculator
public GoldAnnotationStatsCalculator()
initialize
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
- Specified by:
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
- Overrides:
initialize
in class org.uimafit.component.JCasAnnotator_ImplBase
- Throws:
org.apache.uima.resource.ResourceInitializationException
collectionProcessComplete
public void collectionProcessComplete()
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Specified by:
collectionProcessComplete
in interface org.apache.uima.analysis_component.AnalysisComponent
- Overrides:
collectionProcessComplete
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
public void process(org.apache.uima.jcas.JCas jCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Specified by:
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
getTokenDistance
public static int getTokenDistance(org.apache.uima.jcas.JCas systemView,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.