public class EventTimeRelationFeatureExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cachedDocID |
private |
eventSectionTimeRelationLookup |
Constructor and Description |
---|
EventTimeRelationFeatureExtractor() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Feature> |
extract(JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Extract features for the pair of named entity mentions.
|
private void |
rebuildCache(JCas jCas) |
private java.lang.String cachedDocID
privateeventSectionTimeRelationLookup
public java.util.List<Feature> extract(JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2) throws AnalysisEngineProcessException
RelationFeaturesExtractor
extract
in interface RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
jCas
- The JCas containing the two named entity mentions.arg1
- The first identified annotation in the text.arg2
- The second identified annotation in the text.AnalysisEngineProcessException
private void rebuildCache(JCas jCas)