@PipeBitInfo(name="E-T Token TLinker", description="Creates Event - Time TLinks from Token type.", dependencies={SECTION,SENTENCE,EVENT,TIMEX}, products=TEMPORAL_RELATION) public class EventTimeTokenBasedAnnotator extends org.cleartk.ml.CleartkAnnotator<String>
Modifier and Type | Class and Description |
---|---|
static class |
EventTimeTokenBasedAnnotator.OutputMode |
Modifier and Type | Field and Description |
---|---|
static String |
NO_RELATION_CATEGORY |
static Map<String,Integer> |
timex_idx |
static EventTimeTokenBasedAnnotator.OutputMode |
timexMode |
Constructor and Description |
---|
EventTimeTokenBasedAnnotator() |
Modifier and Type | Method and Description |
---|---|
protected void |
createRelation(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2,
String predictedCategory,
double confidence) |
List<TemporalRelationExtractorAnnotator.IdentifiedAnnotationPair> |
getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation sentence) |
protected String |
getRelationCategory(Map<List<org.apache.uima.jcas.tcas.Annotation>,BinaryTextRelation> relationLookup,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Dima's way of getting lables
|
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 void createRelation(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2, String predictedCategory, double confidence)
public List<TemporalRelationExtractorAnnotator.IdentifiedAnnotationPair> getCandidateRelationArgumentPairs(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation sentence)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.