org.apache.ctakes.assertion.medfacts.cleartk
Class AssertionCleartkAnalysisEngine
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<java.lang.String>
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>
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 |
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
AssertionCleartkAnalysisEngine
public AssertionCleartkAnalysisEngine()
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