org.cleartk.timeml.tlink
Class TemporalLinkAnnotator_ImplBase<SOURCE extends org.cleartk.timeml.type.Anchor,TARGET extends org.cleartk.timeml.type.Anchor>

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.cleartk.timeml.tlink.TemporalLinkAnnotator_ImplBase<SOURCE,TARGET>
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable
Direct Known Subclasses:
TemporalLinkEventToDocumentCreationTimeAnnotator, TemporalLinkEventToSameSentenceTimeAnnotator, TemporalLinkEventToSubordinatedEventAnnotator, TemporalLinkMainEventToNextSentenceMainEventAnnotator

public abstract class TemporalLinkAnnotator_ImplBase<SOURCE extends org.cleartk.timeml.type.Anchor,TARGET extends org.cleartk.timeml.type.Anchor>
extends org.cleartk.classifier.CleartkAnnotator<String>


Copyright (c) 2011, Regents of the University of Colorado
All rights reserved.

Author:
Steven Bethard

Field Summary
protected  List<org.cleartk.classifier.feature.extractor.BetweenAnnotationsFeatureExtractor> betweenExtractors
           
protected  List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> sourceExtractors
           
protected  List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> targetExtractors
           
 
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
TemporalLinkAnnotator_ImplBase(Class<SOURCE> sourceClass, Class<TARGET> targetClass, String... trainingRelationTypes)
           
 
Method Summary
protected  Map<SOURCE,Map<TARGET,org.cleartk.timeml.type.TemporalLink>> getLinks(org.apache.uima.jcas.JCas jCas)
           
protected  void logSkippedLinks(org.apache.uima.jcas.JCas jCas, Map<SOURCE,Map<TARGET,org.cleartk.timeml.type.TemporalLink>> links)
           
protected static String noLeavesPath(org.cleartk.syntax.constituent.type.TreebankNodeUtil.TreebankNodePath path)
           
protected  void processLink(SOURCE source, TARGET target, Map<SOURCE,Map<TARGET,org.cleartk.timeml.type.TemporalLink>> links, org.apache.uima.jcas.JCas jCas)
           
protected  void setBetweenExtractors(List<org.cleartk.classifier.feature.extractor.BetweenAnnotationsFeatureExtractor> extractors)
           
protected  void setSourceExtractors(List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> extractors)
           
protected  void setTargetExtractors(List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> extractors)
           
 
Methods inherited from class org.cleartk.classifier.CleartkAnnotator
collectionProcessComplete, initialize, isTraining
 
Methods inherited from class org.uimafit.component.JCasAnnotator_ImplBase
getLogger
 
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process, 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
 

Field Detail

sourceExtractors

protected List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> sourceExtractors

targetExtractors

protected List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> targetExtractors

betweenExtractors

protected List<org.cleartk.classifier.feature.extractor.BetweenAnnotationsFeatureExtractor> betweenExtractors
Constructor Detail

TemporalLinkAnnotator_ImplBase

public TemporalLinkAnnotator_ImplBase(Class<SOURCE> sourceClass,
                                      Class<TARGET> targetClass,
                                      String... trainingRelationTypes)
Method Detail

setSourceExtractors

protected void setSourceExtractors(List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> extractors)

setTargetExtractors

protected void setTargetExtractors(List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> extractors)

setBetweenExtractors

protected void setBetweenExtractors(List<org.cleartk.classifier.feature.extractor.BetweenAnnotationsFeatureExtractor> extractors)

getLinks

protected Map<SOURCE,Map<TARGET,org.cleartk.timeml.type.TemporalLink>> getLinks(org.apache.uima.jcas.JCas jCas)

processLink

protected void processLink(SOURCE source,
                           TARGET target,
                           Map<SOURCE,Map<TARGET,org.cleartk.timeml.type.TemporalLink>> links,
                           org.apache.uima.jcas.JCas jCas)
                    throws org.cleartk.classifier.CleartkProcessingException
Throws:
org.cleartk.classifier.CleartkProcessingException

logSkippedLinks

protected void logSkippedLinks(org.apache.uima.jcas.JCas jCas,
                               Map<SOURCE,Map<TARGET,org.cleartk.timeml.type.TemporalLink>> links)

noLeavesPath

protected static String noLeavesPath(org.cleartk.syntax.constituent.type.TreebankNodeUtil.TreebankNodePath path)


Copyright © 2012. All Rights Reserved.