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

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.assertion.medfacts.cleartk.AssertionCleartkAnalysisEngine
                          extended by org.apache.ctakes.assertion.medfacts.cleartk.PolarityCleartkAnalysisEngine
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable

public class PolarityCleartkAnalysisEngine
extends AssertionCleartkAnalysisEngine


Field Summary
static String NEGATED
           
static String NOT_NEGATED
           
 
Fields inherited from class org.apache.ctakes.assertion.medfacts.cleartk.AssertionCleartkAnalysisEngine
coin, contextFeatureExtractors, cuePhraseInWindowExtractor, entityFeatureExtractors, FEATURE_SELECTION_NAME, featureSelection, featureSelectionThreshold, featureSelectionURI, goldViewName, lastLabel, PARAM_FEATURE_SELECTION_THRESHOLD, PARAM_FEATURE_SELECTION_URI, PARAM_GOLD_VIEW_NAME, PARAM_PRINT_ERRORS, PARAM_PROBABILITY_OF_KEEPING_DEFAULT_EXAMPLE, probabilityOfKeepingADefaultExample, relationId, tokenCleartkExtractors, 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
PolarityCleartkAnalysisEngine()
           
 
Method Summary
static FeatureSelection<String> createFeatureSelection(double threshold)
           
static URI createFeatureSelectionURI(File outputDirectoryName)
           
 void initialize(org.apache.uima.UimaContext context)
           
protected  void initializeFeatureSelection()
           
 void setClassLabel(IdentifiedAnnotation entityOrEventMention, org.cleartk.classifier.Instance<String> instance)
           
 
Methods inherited from class org.apache.ctakes.assertion.medfacts.cleartk.AssertionCleartkAnalysisEngine
extractZoneFeatures, getDescription, 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
 

Field Detail

NEGATED

public static final String NEGATED
See Also:
Constant Field Values

NOT_NEGATED

public static final String NOT_NEGATED
See Also:
Constant Field Values
Constructor Detail

PolarityCleartkAnalysisEngine

public PolarityCleartkAnalysisEngine()
Method Detail

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 AssertionCleartkAnalysisEngine
Throws:
org.apache.uima.resource.ResourceInitializationException

setClassLabel

public void setClassLabel(IdentifiedAnnotation entityOrEventMention,
                          org.cleartk.classifier.Instance<String> instance)
                   throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
setClassLabel in class AssertionCleartkAnalysisEngine
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

createFeatureSelection

public static FeatureSelection<String> createFeatureSelection(double threshold)

createFeatureSelectionURI

public static URI createFeatureSelectionURI(File outputDirectoryName)

initializeFeatureSelection

protected void initializeFeatureSelection()
                                   throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initializeFeatureSelection in class AssertionCleartkAnalysisEngine
Throws:
org.apache.uima.resource.ResourceInitializationException


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