org.apache.ctakes.assertion.medfacts.cleartk
Class AssertionCleartkAnalysisEngine

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<java.lang.String>
                      extended by org.apache.ctakes.assertion.medfacts.cleartk.AssertionCleartkAnalysisEngine
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable
Direct Known Subclasses:
ConditionalCleartkAnalysisEngine, GenericCleartkAnalysisEngine, HistoryCleartkAnalysisEngine, PolarityCleartkAnalysisEngine, SubjectCleartkAnalysisEngine, UncertaintyCleartkAnalysisEngine

public abstract class AssertionCleartkAnalysisEngine
extends org.cleartk.classifier.CleartkAnnotator<java.lang.String>


Field Summary
protected  java.util.Random coin
           
protected  java.util.List<org.cleartk.classifier.feature.extractor.ContextExtractor<IdentifiedAnnotation>> contextFeatureExtractors
           
protected  org.cleartk.classifier.feature.extractor.CleartkExtractor cuePhraseInWindowExtractor
           
protected  java.util.List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> entityFeatureExtractors
           
protected  java.lang.String goldViewName
           
(package private)  org.apache.log4j.Logger logger
           
static java.lang.String PARAM_GOLD_VIEW_NAME
           
static java.lang.String PARAM_PRINT_ERRORS
           
static java.lang.String PARAM_PROBABILITY_OF_KEEPING_DEFAULT_EXAMPLE
           
(package private)  boolean printErrors
           
protected  double probabilityOfKeepingADefaultExample
           
static int relationId
           
protected  java.util.List<org.cleartk.classifier.feature.extractor.CleartkExtractor> tokenCleartkExtractors
           
protected  java.util.List<org.cleartk.classifier.feature.extractor.ContextExtractor<BaseToken>> tokenContextFeatureExtractors
           
 
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
AssertionCleartkAnalysisEngine()
           
 
Method Summary
 java.util.List<org.cleartk.classifier.Feature> extractZoneFeatures(java.util.Map<EntityMention,java.util.Collection<Zone>> coveringZoneMap, IdentifiedAnnotation entityMention)
           
 ConllDependencyNode findAnnotationHead(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annotation)
           
static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(java.lang.Object... additionalConfiguration)
           
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.jcas.JCas jCas)
           
abstract  void setClassLabel(IdentifiedAnnotation entityMention, org.cleartk.classifier.Instance<java.lang.String> instance)
           
 
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
 

Field Detail

logger

org.apache.log4j.Logger logger

PARAM_GOLD_VIEW_NAME

public static final java.lang.String PARAM_GOLD_VIEW_NAME
See Also:
Constant Field Values

relationId

public static int relationId

goldViewName

protected java.lang.String goldViewName

PARAM_PRINT_ERRORS

public static final java.lang.String PARAM_PRINT_ERRORS
See Also:
Constant Field Values

printErrors

boolean printErrors

PARAM_PROBABILITY_OF_KEEPING_DEFAULT_EXAMPLE

public static final java.lang.String PARAM_PROBABILITY_OF_KEEPING_DEFAULT_EXAMPLE
See Also:
Constant Field Values

probabilityOfKeepingADefaultExample

protected double probabilityOfKeepingADefaultExample

coin

protected java.util.Random coin

contextFeatureExtractors

protected java.util.List<org.cleartk.classifier.feature.extractor.ContextExtractor<IdentifiedAnnotation>> contextFeatureExtractors

tokenContextFeatureExtractors

protected java.util.List<org.cleartk.classifier.feature.extractor.ContextExtractor<BaseToken>> tokenContextFeatureExtractors

tokenCleartkExtractors

protected java.util.List<org.cleartk.classifier.feature.extractor.CleartkExtractor> tokenCleartkExtractors

entityFeatureExtractors

protected java.util.List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> entityFeatureExtractors

cuePhraseInWindowExtractor

protected org.cleartk.classifier.feature.extractor.CleartkExtractor cuePhraseInWindowExtractor
Constructor Detail

AssertionCleartkAnalysisEngine

public AssertionCleartkAnalysisEngine()
Method Detail

findAnnotationHead

public ConllDependencyNode findAnnotationHead(org.apache.uima.jcas.JCas jcas,
                                              org.apache.uima.jcas.tcas.Annotation annotation)

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
Specified by:
initialize in interface org.uimafit.factory.initializable.Initializable
Overrides:
initialize in class org.cleartk.classifier.CleartkAnnotator<java.lang.String>
Throws:
org.apache.uima.resource.ResourceInitializationException

setClassLabel

public abstract void setClassLabel(IdentifiedAnnotation entityMention,
                                   org.cleartk.classifier.Instance<java.lang.String> instance)
                            throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
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

extractZoneFeatures

public java.util.List<org.cleartk.classifier.Feature> extractZoneFeatures(java.util.Map<EntityMention,java.util.Collection<Zone>> coveringZoneMap,
                                                                          IdentifiedAnnotation entityMention)

getDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(java.lang.Object... additionalConfiguration)
                                                                                throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException