public class SpecialAnnotationRelationExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Constructor and Description |
---|
SpecialAnnotationRelationExtractor() |
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 static Sentence |
getCoveringSentence(EventMention event,
java.util.Map<EventMention,java.util.Collection<Sentence>> coveringMap) |
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 static Sentence getCoveringSentence(EventMention event, java.util.Map<EventMention,java.util.Collection<Sentence>> coveringMap)