@PipeBitInfo(name="E-E Position TLinker", description="Creates Event - Event TLinks with position.", dependencies={SECTION,SENTENCE,EVENT}, products=TEMPORAL_RELATION) public class EventEventPositionBasedAnnotator extends org.cleartk.ml.CleartkAnnotator<String>
Modifier and Type | Field and Description |
---|---|
static String |
NO_RELATION_CATEGORY |
Constructor and Description |
---|
EventEventPositionBasedAnnotator() |
Modifier and Type | Method and Description |
---|---|
protected void |
createRelation(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
String predictedCategory,
double confidence) |
protected String |
getRelationCategory(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
original way of getting label
|
protected String |
getRelationCategory2(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
void |
process(org.apache.uima.jcas.JCas jCas) |
collectionProcessComplete, initialize, isTraining
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String NO_RELATION_CATEGORY
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
protected String getRelationCategory(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)
relationLookup
- arg1
- arg2
- protected String getRelationCategory2(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)
protected void createRelation(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2, String predictedCategory, double confidence)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.