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(JCas jCas)
Returns the (source, target) anchor pairs for which a relation should be classified.
|
protected static String |
noLeavesPath(TreebankNodeUtil.TreebankNodePath path) |
void |
process(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, isTraininggetLoggergetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextbatchProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationprotected List<FeatureExtractor2<Anchor,Anchor>> betweenExtractors
public static Map<String,String> REVERSE_RELATION
protected List<FeatureExtractor1<SOURCE extends Anchor>> sourceExtractors
protected List<FeatureExtractor1<TARGET extends Anchor>> targetExtractors
protected abstract List<TemporalLinkAnnotator_ImplBase.SourceTargetPair> getSourceTargetPairs(JCas jCas)
protected static String noLeavesPath(TreebankNodeUtil.TreebankNodePath path)
public void process(JCas jCas) throws AnalysisEngineProcessException
process in class JCasAnnotator_ImplBaseAnalysisEngineProcessExceptionprotected void setBetweenExtractors(List<FeatureExtractor2<Anchor,Anchor>> extractors)
protected void setSourceExtractors(List<FeatureExtractor1<SOURCE>> extractors)
protected void setTargetExtractors(List<FeatureExtractor1<TARGET>> extractors)
Copyright © 2014. All rights reserved.