@PipeBitInfo(name="E-E Token TLinker", description="Creates Event - Event TLinks from Token type.", dependencies={SECTION,SENTENCE,EVENT}, products=TEMPORAL_RELATION) public class EventEventTokenBasedAnnotator extends org.cleartk.ml.CleartkAnnotator<String>
Modifier and Type | Field and Description |
---|---|
static String |
NO_RELATION_CATEGORY |
static Map<String,Integer> |
timex_idx |
static EventTimeTokenBasedAnnotator.OutputMode |
timexMode |
Constructor and Description |
---|
EventEventTokenBasedAnnotator() |
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) |
static String |
getTokenTimexContext(org.apache.uima.jcas.JCas jCas,
Sentence sentence,
IdentifiedAnnotation arg1,
String leftType,
IdentifiedAnnotation arg2,
String rightType,
int contextSize) |
void |
process(org.apache.uima.jcas.JCas jCas) |
Map<String,Integer> |
TimexIdxReader(InputStream in) |
static void |
TimexIdxWriter() |
collectionProcessComplete, initialize, isTraining
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String NO_RELATION_CATEGORY
public static EventTimeTokenBasedAnnotator.OutputMode timexMode
public Map<String,Integer> TimexIdxReader(InputStream in) throws IOException
IOException
public static void TimexIdxWriter() throws IOException
IOException
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 String getTokenTimexContext(org.apache.uima.jcas.JCas jCas, Sentence sentence, IdentifiedAnnotation arg1, String leftType, IdentifiedAnnotation arg2, String rightType, int contextSize)
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.