public abstract class AssertionCleartkAnalysisEngine extends org.cleartk.ml.CleartkAnnotator<String>
Modifier and Type | Class and Description |
---|---|
static class |
AssertionCleartkAnalysisEngine.FEATURE_CONFIG |
Constructor and Description |
---|
AssertionCleartkAnalysisEngine() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
getDescription(Object... additionalConfiguration) |
Map<String,String> |
getTrainFileToDomain() |
void |
initialize(org.apache.uima.UimaContext context) |
protected abstract void |
initializeFeatureSelection() |
static String |
normalizeToDomain(String dir)
Looks in the domain string (path) for meaningful corpus names
|
void |
process(org.apache.uima.jcas.JCas jCas) |
abstract void |
setClassLabel(IdentifiedAnnotation entityMention,
org.cleartk.ml.Instance<String> instance) |
void |
setTrainFileToDomain(Map<String,String> trainFileToDomain) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_GOLD_VIEW_NAME
public static int relationId
public static final String FILE_TO_DOMAIN_MAP
protected String goldViewName
public static final String PARAM_PRINT_ERRORS
public static final String PARAM_PROBABILITY_OF_KEEPING_DEFAULT_EXAMPLE
protected double probabilityOfKeepingADefaultExample
public static final String PARAM_PORTION_OF_DATA_TO_USE
protected double portionOfDataToUse
public static final String PARAM_FEATURE_SELECTION_THRESHOLD
protected Float featureSelectionThreshold
public static final String PARAM_FEATURE_CONFIG
protected AssertionCleartkAnalysisEngine.FEATURE_CONFIG featConfig
public static final String PARAM_FEATURE_SELECTION_URI
protected URI featureSelectionURI
protected static Random coin
protected static final String FEATURE_SELECTION_NAME
protected String fileDomainMap
protected String lastLabel
protected List<org.cleartk.ml.feature.extractor.CleartkExtractor<IdentifiedAnnotation,BaseToken>> contextFeatureExtractors
protected List<org.cleartk.ml.feature.extractor.CleartkExtractor<IdentifiedAnnotation,BaseToken>> tokenContextFeatureExtractors
protected List<org.cleartk.ml.feature.extractor.CleartkExtractor<IdentifiedAnnotation,BaseToken>> tokenCleartkExtractors
protected List<org.cleartk.ml.feature.extractor.FeatureExtractor1<IdentifiedAnnotation>> entityFeatureExtractors
protected List<org.cleartk.ml.feature.extractor.FeatureExtractor1<IdentifiedAnnotation>> entityTreeExtractors
protected org.cleartk.ml.feature.extractor.CleartkExtractor<IdentifiedAnnotation,BaseToken> cuePhraseInWindowExtractor
protected List<org.cleartk.ml.feature.function.FeatureFunctionExtractor<IdentifiedAnnotation>> featureFunctionExtractors
protected FedaFeatureFunction ffDomainAdaptor
protected FeatureSelection<String> featureSelection
public abstract void setClassLabel(IdentifiedAnnotation entityMention, org.cleartk.ml.Instance<String> instance) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected abstract void initializeFeatureSelection() throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
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 org.cleartk.ml.CleartkAnnotator<String>
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(Object... additionalConfiguration) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.