@PipeBitInfo(name="Negation Annotator (Feda)", description="Annotates negation property.", dependencies={SENTENCE,IDENTIFIED_ANNOTATION}) public class PolarityFedaCleartkAnalysisEngine extends PolarityCleartkAnalysisEngine
AssertionCleartkAnalysisEngine.FEATURE_CONFIG
NEGATED, NOT_NEGATED
coin, contextFeatureExtractors, cuePhraseInWindowExtractor, entityFeatureExtractors, entityTreeExtractors, featConfig, FEATURE_SELECTION_NAME, featureFunctionExtractors, featureSelection, featureSelectionThreshold, featureSelectionURI, ffDomainAdaptor, FILE_TO_DOMAIN_MAP, fileDomainMap, fileToDomain, goldViewName, lastLabel, PARAM_FEATURE_CONFIG, PARAM_FEATURE_SELECTION_THRESHOLD, PARAM_FEATURE_SELECTION_URI, PARAM_GOLD_VIEW_NAME, PARAM_PORTION_OF_DATA_TO_USE, PARAM_PRINT_ERRORS, PARAM_PROBABILITY_OF_KEEPING_DEFAULT_EXAMPLE, portionOfDataToUse, probabilityOfKeepingADefaultExample, relationId, tokenCleartkExtractors, tokenContextFeatureExtractors
Constructor and Description |
---|
PolarityFedaCleartkAnalysisEngine() |
Modifier and Type | Method and Description |
---|---|
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.ml.Instance<String> instance) |
createAnnotatorDescription, createAnnotatorDescription
getDescription, getTrainFileToDomain, normalizeToDomain, process, setTrainFileToDomain
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in interface org.apache.uima.fit.factory.initializable.Initializable
initialize
in class PolarityCleartkAnalysisEngine
org.apache.uima.resource.ResourceInitializationException
public void setClassLabel(IdentifiedAnnotation entityOrEventMention, org.cleartk.ml.Instance<String> instance) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
setClassLabel
in class PolarityCleartkAnalysisEngine
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static FeatureSelection<String> createFeatureSelection(double threshold)
protected void initializeFeatureSelection() throws org.apache.uima.resource.ResourceInitializationException
initializeFeatureSelection
in class PolarityCleartkAnalysisEngine
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.