public abstract class TemporalLinkAnnotator_ImplBase<SOURCE extends Anchor,TARGET extends Anchor> extends CleartkAnnotator<String>
| Modifier and Type | Class and Description |
|---|---|
protected class |
TemporalLinkAnnotator_ImplBase.SourceTargetPair |
| Modifier and Type | Field and Description |
|---|---|
protected List<FeatureExtractor2<Anchor,Anchor>> |
betweenExtractors |
static Map<String,String> |
REVERSE_RELATION |
protected List<FeatureExtractor1<SOURCE>> |
sourceExtractors |
protected List<FeatureExtractor1<TARGET>> |
targetExtractors |
classifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING| Constructor and Description |
|---|
TemporalLinkAnnotator_ImplBase(Class<SOURCE> sourceClass,
Class<TARGET> targetClass,
String... trainingRelationTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<TemporalLinkAnnotator_ImplBase.SourceTargetPair> |
getSourceTargetPairs(org.apache.uima.jcas.JCas jCas)
Returns the (source, target) anchor pairs for which a relation should be classified.
|
protected static String |
noLeavesPath(TreebankNodeUtil.TreebankNodePath path) |
void |
process(org.apache.uima.jcas.JCas jCas) |
protected void |
setBetweenExtractors(List<FeatureExtractor2<Anchor,Anchor>> extractors) |
protected void |
setSourceExtractors(List<FeatureExtractor1<SOURCE>> extractors) |
protected void |
setTargetExtractors(List<FeatureExtractor1<TARGET>> extractors) |
collectionProcessComplete, initialize, isTraininggetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextprotected List<FeatureExtractor1<SOURCE extends Anchor>> sourceExtractors
protected List<FeatureExtractor1<TARGET extends Anchor>> targetExtractors
protected List<FeatureExtractor2<Anchor,Anchor>> betweenExtractors
protected void setSourceExtractors(List<FeatureExtractor1<SOURCE>> extractors)
protected void setTargetExtractors(List<FeatureExtractor1<TARGET>> extractors)
protected void setBetweenExtractors(List<FeatureExtractor2<Anchor,Anchor>> extractors)
protected abstract List<TemporalLinkAnnotator_ImplBase.SourceTargetPair> getSourceTargetPairs(org.apache.uima.jcas.JCas jCas)
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_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionprotected static String noLeavesPath(TreebankNodeUtil.TreebankNodePath path)
Copyright © 2023. All rights reserved.