@PipeBitInfo(name="ClearTK Conditional Annotator", description="Determines whether or not Identified Annotations are conditional.", dependencies=IDENTIFIED_ANNOTATION, usables=DOCUMENT_ID) public class ConditionalCleartkAnalysisEngine extends AssertionCleartkAnalysisEngine
AssertionCleartkAnalysisEngine.FEATURE_CONFIG
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 |
---|
ConditionalCleartkAnalysisEngine() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String modelPath) |
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) |
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 AssertionCleartkAnalysisEngine
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 AssertionCleartkAnalysisEngine
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 AssertionCleartkAnalysisEngine
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String modelPath) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription() throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.