@PipeBitInfo(name="E-E POS TLinker", description="Creates Event - Event TLinks with Parts of Speech.", dependencies={SECTION,SENTENCE,EVENT}, products=TEMPORAL_RELATION) public class EventEventPosBasedAnnotator extends org.cleartk.ml.CleartkAnnotator<String>
Modifier and Type | Field and Description |
---|---|
static String |
NO_RELATION_CATEGORY |
Constructor and Description |
---|
EventEventPosBasedAnnotator() |
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.