org.apache.ctakes.relationextractor.ae.baselines
Class Baseline3DegreeOfRelationExtractorAnnotator

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.uimafit.component.JCasAnnotator_ImplBase
                  extended by org.cleartk.classifier.CleartkAnnotator<String>
                      extended by org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator
                          extended by org.apache.ctakes.relationextractor.ae.baselines.Baseline3DegreeOfRelationExtractorAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable

public class Baseline3DegreeOfRelationExtractorAnnotator
extends RelationExtractorAnnotator

This baseline links each modifier with the closest entity of a type that's suitable for degree_of, as long as there is no intervening modifier.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator
RelationExtractorAnnotator.IdentifiedAnnotationPair
 
Field Summary
 
Fields inherited from class org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator
coin, NO_RELATION_CATEGORY, PARAM_PROBABILITY_OF_KEEPING_A_NEGATIVE_EXAMPLE, probabilityOfKeepingANegativeExample
 
Fields inherited from class org.cleartk.classifier.CleartkAnnotator
classifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING
 
Constructor Summary
Baseline3DegreeOfRelationExtractorAnnotator()
           
 
Method Summary
 String classify(List<org.cleartk.classifier.Feature> features)
          Predict an outcome given a set of features.
 List<RelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas identifiedAnnotationView, org.apache.uima.jcas.tcas.Annotation sentence)
          Selects the relevant mentions/annotations within a covering annotation for relation identification/extraction.
 Class<? extends org.apache.uima.jcas.tcas.Annotation> getCoveringClass()
           
 
Methods inherited from class org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator
createRelation, getFeatureExtractors, getRelationCategory, getRelationClass, initialize, process
 
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
 

Constructor Detail

Baseline3DegreeOfRelationExtractorAnnotator

public Baseline3DegreeOfRelationExtractorAnnotator()
Method Detail

getCoveringClass

public Class<? extends org.apache.uima.jcas.tcas.Annotation> getCoveringClass()
Specified by:
getCoveringClass 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

classify

public String classify(List<org.cleartk.classifier.Feature> features)
Description copied from class: RelationExtractorAnnotator
Predict an outcome given a set of features. By default, this simply delegates to the object's classifier. Subclasses may override this method to implement more complex classification procedures.

Overrides:
classify in class RelationExtractorAnnotator
Parameters:
features - The features to be classified.
Returns:
The predicted outcome (label) for the features.


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.