org.apache.ctakes.relationextractor.ae
Class LocationOfRelationExtractorAnnotator
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.cleartk.classifier.CleartkAnnotator<String>
org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator
org.apache.ctakes.relationextractor.ae.LocationOfRelationExtractorAnnotator
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable
public class LocationOfRelationExtractorAnnotator
- extends RelationExtractorAnnotator
Identifies Location_Of relations between EventMention
s and
AnatomicalSiteMention
s.
Fields inherited from class org.cleartk.classifier.CleartkAnnotator |
classifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING |
Methods inherited from class org.cleartk.classifier.CleartkAnnotator |
collectionProcessComplete, isTraining |
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 |
LocationOfRelationExtractorAnnotator
public LocationOfRelationExtractorAnnotator()
getRelationClass
protected Class<? extends BinaryTextRelation> getRelationClass()
- Overrides:
getRelationClass
in class RelationExtractorAnnotator
getCandidateRelationArgumentPairs
public List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas identifiedAnnotationView,
org.apache.uima.jcas.tcas.Annotation sentence)
- Description copied from class:
RelationExtractorAnnotator
- Selects the relevant mentions/annotations within a covering annotation for
relation identification/extraction.
- Specified by:
getCandidateRelationArgumentPairs
in class RelationExtractorAnnotator
createRelation
protected void createRelation(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
String predictedCategory)
- Description copied from class:
RelationExtractorAnnotator
- Create a UIMA relation type based on arguments and the relation label. This
allows subclasses to create/define their own types: e.g. coreference can
create CoreferenceRelation instead of BinaryTextRelation
- Overrides:
createRelation
in class RelationExtractorAnnotator
- Parameters:
jCas
- - JCas object, needed to create new UIMA typesarg1
- - First argument to relationarg2
- - Second argument to relationpredictedCategory
- - Name of relation
getCoveringClass
protected Class<? extends org.apache.uima.jcas.tcas.Annotation> getCoveringClass()
- Specified by:
getCoveringClass
in class RelationExtractorAnnotator
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.